Advertisement
Guest User

test

a guest
Sep 14th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5. int main(){
  6.     int n;
  7.     cout << (n = 4) << endl;//4
  8.     cout << (n == 4) << endl;//1
  9.     cout << (n > 3) << endl;//1
  10.     cout << (n < 4) << endl;//0
  11.     cout << (n = 0) << endl;//0
  12.     cout << (n == 0) << endl;//1
  13.     cout << (n > 0) << endl;//0
  14.     cout << (n && 0) << endl;// ?
  15.     cout << (n || 4) << endl;//?
  16.     cout << (!n) << endl;//?
  17.     system("Pause");
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement