fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a = 1,b =2,c=3, d=4, e=5;
  6. if(a==1 && b==2 && c==3 && d==4 && e==5)
  7. cout<<"Akash\n";
  8. int flg =0;
  9. if( !(
  10. ( !(a==1) && (flg=1) )||
  11. (!(b==2) && (flg=2) ) ||
  12. (!(c==4) && (flg=3) )||
  13. (!(d==4) && (flg=4) )||
  14. (!(e==5) && (flg=5) )
  15. ))
  16. {
  17. cout<<"singh, flg"<<flg<<"\n";
  18.  
  19. }
  20. else
  21. cout<<"Hum, flg:"<<flg<<"\n";
  22. return 0;
  23. }
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
Akash
Hum, flg:3