Names of Months
The next example uses an array to store the number of days in each month. The user can enter the number of a month and find out how many days are in the month. The array is declare to have 13 elements. They will be number 0 to 12. We won't be using element 0, but it is easier to understand if January is element 1 and December is element 12.