
208 Programming and Data Structures
Month [41 of a year contains 30 days.
Month I S] of a year contains 31 days.
Month [6] of a year contains 30 days.
Month [7] of a year contains 31 days.
Month [8] of a year contains 31 days.
Month [9] of a year contains 30 days.
Month [10] of a year contains 31 days.
Month [11] of a year contains 30 days.
Month [12] of a year contains 31 days.
Explanation In the above example, one dimensional array month [12] is initialized with number of
days of different months of a year from 1 to 12 as per their order. In pr in f () function number of days
of the months are printed. The value of % i ' is increas ...