Advertisement
MeehoweCK

Untitled

Jun 28th, 2021
794
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. /* operatory porównania
  6.     >   większe
  7.     >=  większe lub równe
  8.     <   mniejsze
  9.     <=  mniejsze lub równe
  10.     ==  równe
  11. */
  12.  
  13. int main()
  14. {
  15.     int liczba;
  16.     cout << "Wpisz liczbe calkowita: ";
  17.     cin >> liczba;
  18.     if(liczba == 100)
  19.         cout << "Podana liczba ma wartosc 100\n";
  20.     else
  21.         cout << "Podana liczba ma wartosc inna niz 100\n";
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement