I am quite newbie in programming and I want to print out a specific input format the exact way as shown below.
5 5
1
2 2 0 1
5 5
1
2 2 0 1
The top part is the input parameters and the below part which is the same as well is the output. How do I format my scanf
and printf
to achieve this format? This is actually a 2D array problem but I believe for this part I would not need a 2D array yet? As for stage 1, I am just suppose to print out this format of inputs.