Advertisement
MeehoweCK

Untitled

Dec 14th, 2020
650
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int liczba;
  8.  
  9.     cin >> liczba;
  10.  
  11.     switch(liczba)
  12.     {
  13.     case 1:
  14.         cout << "jeden\n";
  15.         break;
  16.     case 2:
  17.         cout << "dwa\n";
  18.         break;
  19.     case 3:
  20.         cout << "trzy\n";
  21.         break;
  22.     case 4:
  23.         cout << "cztery\n";
  24.         break;
  25.     case 10:
  26.         cout << "dziesiec\n";
  27.         break;
  28.     default:
  29.         cout << "wpisales inna liczbe niz 1, 2, 3, 4 i 10\n";
  30.     }
  31.     return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement