4 of 4
Paper No: 5
Question 4:
(1 mark, file to be edited: Q4.c)
The user is asked to enter an integer R using the keyboard (STDIN). Where R is the row number of an
empty square.
Print an empty square with numbers starting from 1
For example, enter R = 6
6
OUTPUT:
1 2 3 4 5 6
1
1
1
1
6
6
6
6
1 2 3 4 5 6
Press any key to continue
Question 5:
(1 mark, file to be edited: Q5.c)
Your program allows users to enter an array of N integers, where N is entered by the user,(0 < n < 10).
Close
+ 100%
Zoom