Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- setlocale(LC_ALL, "ru");
- int a = 10;
- int b = 3;
- cout << (a > b) << endl;
- cout << !(a > b) << endl; // логическая инверсия
- }
Advertisement
Add Comment
Please, Sign In to add comment