Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main(){
- int n;
- cout << (n = 4) << endl;//4
- cout << (n == 4) << endl;//1
- cout << (n > 3) << endl;//1
- cout << (n < 4) << endl;//0
- cout << (n = 0) << endl;//0
- cout << (n == 0) << endl;//1
- cout << (n > 0) << endl;//0
- cout << (n && 0) << endl;// ?
- cout << (n || 4) << endl;//?
- cout << (!n) << endl;//?
- system("Pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement