int h,m;
cout << "Enter hours and minutes" << endl;
cin >> h >> m;
if (h >= 5 && h <= 11)
cout << "Enter hours and minutes" << endl;
cin >> h >> m;
if (h >= 5 && h <= 11)
cout << "Good Morning" << endl;else if (h >= 12 && h <= 16)
cout << "Good Afternoon" << endl;else if (h >= 17 && h <= 20)
cout << "Good Evening" << endl;else if (h>=21&&h<=4)
cout << "Good Night" << endl;system("pause");
Комментариев нет:
Отправить комментарий