Что будет выведено на экран в результате выполнения приведенной программы, если в запросе ввода номера месяца пользователь задаст число 2?int main (void) { enum month {january, february, march, april, may, june,july, august, september, october, november, december } aMonth; int days; printf("\n Enter the number of the month (1 - 12): "); scanf_s("%d", &aMonth); switch (aMonth) { case january: case march: case may: case july: case august: case october: case december: days = 31; break; case april: case june: case september: case november: days = 30; break; case february: days = 28; break; default: printf("\n\t Wrong number of the month\n"); days = 0; break; } if (days) printf("\n The number of days of the month: %d\n", days); if (aMonth == 2) printf("\n ... or 29 if it is a leap year\n"); return 0; }
(Отметьте один правильный вариант ответа.)
Варианты ответа
The number of days of the month: 31(Верный ответ)
The number of days of the month: 30
The number of days of the month: 28 ... or 29 if it is a leap year