Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.85 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using std::cout;
  4. using std::cin;
  5. using std::endl;
  6.  
  7. int main()
  8. {
  9.       cout << "Enter the number: ";
  10.       int x;
  11.       cin >> x;
  12.      
  13.       switch (x){
  14.         case 0:
  15.         cout << "ноль";
  16.         break;
  17.           case 1:
  18.         cout << "один";
  19.         break;
  20.           case 2:
  21.         cout << "два";
  22.         break;
  23.           case 3:
  24.         cout << "три";
  25.         break;
  26.           case 4:
  27.         cout << "четыри";
  28.         break;
  29.           case 5:
  30.         cout << "пять";
  31.         break;
  32.           case 6:
  33.         cout << "шесть";
  34.         break;
  35.           case 7:
  36.         cout << "семь";
  37.         break;
  38.           case 8:
  39.         cout << "восемь";
  40.         break;
  41.           case 9:
  42.         cout << "девять";
  43.    
  44.       }
  45.       cout << endl;
  46.       return 0;
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement