1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
{
//declare global arrays
int days [12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
int month [12] = ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
cout << "Enter a number of the month to see the number of days in that month: ";
cin >> days;
// display days per month
cout << "Days of this month equal: " << days << endl
system("pause");
return 0;
|