Advertisement
Kacper_Michalak

Seria 2 Zadanie 18

Nov 16th, 2020 (edited)
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.   int x;
  8.  
  9.   cout << "Podaj numer miesiaca " << endl;
  10.   cin >> x ;
  11.  
  12.   if ( x > 0 && x < 13)
  13.   {
  14.       cout << "Liczba jest parwidlowym numerem miesiaca." << endl;
  15.   }
  16.   else
  17.   {
  18.       cout << "Liczba nie jest parwidlowym numerem miesiaca." << endl;
  19.   }
  20.     return 0;
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement