Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using std::cout;
- using std::cin;
- using std::endl;
- int main()
- {
- cout << "Enter the number: ";
- int x;
- cin >> x;
- switch (x){
- case 0:
- cout << "ноль";
- break;
- case 1:
- cout << "один";
- break;
- case 2:
- cout << "два";
- break;
- case 3:
- cout << "три";
- break;
- case 4:
- cout << "четыри";
- break;
- case 5:
- cout << "пять";
- break;
- case 6:
- cout << "шесть";
- break;
- case 7:
- cout << "семь";
- break;
- case 8:
- cout << "восемь";
- break;
- case 9:
- cout << "девять";
- }
- cout << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement