✓ Kizspy.me
8 10 6 2
Press any key to continue .
Question 4:
(1 mark, file to be edited: Q4.c)
Ask the user to enter an integer R. Print a hollow square of size R using numbers, starting from 1.
Below is an example when user enter R = 5
OUTPUT:
1 2 3 4 5
1
5
1
5
1
5
1 2 3 4 5
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 (0 < N< 10). Calculate the sum of all odd
numbers. If no odd numbers exist, print "No odd numbers".
Below is an example:
Zoom
+100%
Close