Advertisement
DawidG

Zadanie2 - Część 2

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