fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. char x;
  7. cin>>x;
  8. switch (x){
  9. case '1' :
  10. cout <<"saturday"<<endl;
  11. break;
  12. case '2' :
  13. cout <<"sunday"<<endl;
  14. break;
  15. case '3' :
  16. cout <<"monday"<<endl;
  17. break;
  18. case '4' :
  19. cout <<"tuesday"<<endl;
  20. break;
  21. case '5' :
  22. cout<<"wednesday"<<endl;
  23. break;
  24. case '6' :
  25. cout<<"thursday"<<endl;
  26. break;
  27. case '7':
  28. cout<<"friday"<<endl;
  29. break;
  30. default :
  31. cout<<"wrong"<<endl;
  32.  
  33.  
  34. }
  35.  
  36.  
  37.  
  38.  
  39. return 0;
  40. }
Success #stdin #stdout 0s 5636KB
stdin
Standard input is empty
stdout
wrong