Advertisement
MeehoweCK

Untitled

Feb 2nd, 2023
827
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. /* OPERATORY PORÓWNANIA
  6. >   większe
  7. <   mniejsze
  8. >=  większe lub równe
  9. <=  mniejsze lub równe
  10. ==  równe (dwa!! znaki równości)
  11. !=  różne
  12.  
  13. OPERATORY LOGICZNE
  14. &&  (AND) i
  15. ||  (OR) lub
  16. */
  17.  
  18. int main()
  19. {
  20.     bool pf = 5 > 2;
  21.     cout << pf << endl;
  22.     pf = 10 == 6;
  23.     cout << pf << endl;
  24.  
  25.     pf = (6 > 5) && (2 > 3);
  26.     cout << pf << endl;
  27.  
  28.     pf = (10 > 7) || (2 < 1);
  29.     cout << pf << endl;
  30.     return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement