fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int k(1), l(2);
  7. if (k and l) cout << "both non zero\n";
  8.  
  9. return 0;
  10. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
both non zero