Press any key to continue
Question 10:
(1 mark, file to be edited: Q10.c)
The program asks the user to enter an integer Y and an integer array of N elements, N is entered from the keyboard (0 < N < 13).
Print to the screen a list of elements of the array corresponding to the month in the year Y and the number of days in that month.
Here is an example:
Case 1: Enter Y = 2024; N = 5, Months = {2, 5, 9, 7, 6}
8 of 8
Paper No: 8
Zoom
+ 100%
Close