fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a;
  6. cin >> a;
  7.  
  8.  
  9. if (a == 2) cout << "MONDAY" << endl;
  10. else if (a == 3) cout << "TUESDAY" << endl;
  11. else if (a == 4) cout << "WEDNESDAY" << endl;
  12. else if (a == 5) cout << "THURSDAY" << endl;
  13. else if (a == 6) cout << "FRIDAY" << endl;
  14. else if (a == 7) cout << "SATURDAY" << endl;
  15. else if (a == 8) cout << "SUNDAY" << endl;
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5248KB
stdin
2
5
stdout
MONDAY