Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- /* OPERATORY PORÓWNANIA
- > większe
- < mniejsze
- >= większe lub równe
- <= mniejsze lub równe
- == równe (dwa!! znaki równości)
- != różne
- OPERATORY LOGICZNE
- && (AND) i
- || (OR) lub
- */
- int main()
- {
- bool pf = 5 > 2;
- cout << pf << endl;
- pf = 10 == 6;
- cout << pf << endl;
- pf = (6 > 5) && (2 > 3);
- cout << pf << endl;
- pf = (10 > 7) || (2 < 1);
- cout << pf << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement