int year;
cout << "Enter year:";
cin >> year;
if (year % 4 == 0 || year % 400 == 0)
cout << "Enter year:";
cin >> year;
if (year % 4 == 0 || year % 400 == 0)
cout << "Leap-year" << endl;else
cout << "No leap-year" << endl;system("pause");
Комментариев нет:
Отправить комментарий