Advertisement
pan7nikt

RokSzkolny

Feb 11th, 2020
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int i;
  5.  
  6. main()
  7. {
  8.     cout << "podaj numer miesiaca: ";
  9.     cin >> i;
  10.    
  11.     switch(i)
  12.     {
  13.         case 7:
  14.         cout << "lipiec, ";
  15.         case 8:
  16.         cout << "sierpien, ";
  17.         case 9:
  18.         cout << "wrzesien, ";
  19.         case 10:
  20.         cout << "pazdziernik, ";
  21.         case 11:
  22.         cout << "listopad, ";
  23.         case 12:
  24.         cout << "grudzien, ";
  25.         case 1:
  26.         cout << "styczen, ";
  27.         case 2:
  28.         cout << "luty, ";
  29.         case 3:
  30.         cout << "marzec, ";
  31.         case 4:
  32.         cout << "kwiecien, ";
  33.         case 5:
  34.         cout << "maj, ";
  35.         case 6:
  36.         cout << "czerwiec, ";
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement