fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int A, B, C;
  5. A=4;B=3;C=A>B;printf("%d\n",C);
  6. A=4;B=3;C=2*(A>B);printf("%d\n",C);
  7. A=4;B=3;C=(A>B)&& (A>0);printf("%d\n",C);
  8.  
  9. }
  10.  
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
1
2
1