Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- string day;
- cin >> day;
- if (day == "Monday" || day == "Tuesday" || day == "Wednesday" || day == "Thursday" || day == "Friday") {
- cout << "Working day" << endl;
- }
- else if (day == "Saturday" || day == "Sunday") {
- cout << "Weekend" << endl;
- }
- else {
- cout << "Error" << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement