#include <iostream> using namespace std; int main() { int date; // Input cout << "Enter date: "; cin >> date; // Sunday (2nd, 9th,16th, 23rd and 30th) if if ((date == 2) || (date == 9) || (date == 16) || (date == 23) || (date ==30)) { cout << "This is a Sunday."; // Public holiday (14thand 23rd) if } else if ((date == 14) || (date == 23)) { cout << "This is a public holiday."; // Working day if } else { cout << "This is a working day."; } return 0;}
Comments