fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int x,y,z;
  6. x=2;y=4;
  7. printf("x=%d y=%d\n",x,y);
  8. z=x<y;
  9. printf("(x<y) The value of z is %d\n",z);
  10. z=x>y;
  11. printf("(x>y) The value of z is %d\n",z);
  12.  
  13. }
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
x=2 y=4
(x<y) The value of z is 1
(x>y) The value of z is 0