fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int numero;
  6. cin >> numero;
  7. switch (numero) {
  8. case 1:
  9. cout << "one\n"; //cout << "one" << "\n"
  10. break;
  11. case 2:
  12. cout << "two\n";
  13. break;
  14. case 3:
  15. cout << "three\n";
  16. break;
  17. case 4:
  18. cout << "four\n";
  19. break;
  20. case 5:
  21. cout << "five\n";
  22. break;
  23. default:
  24. cout << "error!\n";
  25. }
  26. return 0;
  27. }
  28.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
error!