Advertisement
Kacper_Michalak

Seria 2 Zadanie 2

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