Paste Search Dynamic
Recent pastes
case month
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int mes;
  6. cin>>mes;
  7. switch (mes){
  8. case 1:cout<<"January"<<endl;
  9. break;
  10. case 2:cout<<"February"<<endl;
  11. break;
  12. case 3:cout<<"March"<<endl;
  13. break;
  14. case 4:cout<<"April"<<endl;
  15. break;
  16. case 5:cout<<"May"<<endl;
  17. break;
  18. case 6:cout<<"June"<<endl;
  19. break;
  20.  
  21. case 7:cout<<"July"<<endl;
  22. break;
  23. case 8:cout<<"August"<<endl;
  24. break;
  25. case 9:cout<<"September"<<endl;
  26. break;
  27. case 10:cout<<"October"<<endl;
  28. break;
  29. case 11:cout<<"November"<<endl;
  30. break;
  31. case 12:cout<<"December"<<endl;
  32. break;}
  33.  
  34.         return 0;
  35. }
Parsed in 0.005 seconds