// always print 0 or 1 value
#include <stdio.h>
int main() {
int a = 10, b = 20;
printf("a = %d, b = %d\n\n", a
, b
);
// Greater than
// Less than
// Greater than or equal to
printf("a >= b: %d\n", a
>= b
);
// Less than or equal to
printf("a <= b: %d\n", a
<= b
);
// Equal to
printf("a == b: %d\n", a
== b
);
// Not equal to
printf("a != b: %d\n", a
!= b
);
return 0;
}
Ly8gYWx3YXlzIHByaW50IDAgb3IgMSB2YWx1ZQoKI2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGludCBhID0gMTAsIGIgPSAyMDsKCiAgICBwcmludGYoImEgPSAlZCwgYiA9ICVkXG5cbiIsIGEsIGIpOwoKICAgIC8vIEdyZWF0ZXIgdGhhbgogICAgcHJpbnRmKCJhID4gYjogJWRcbiIsIGEgPiBiKTsKCiAgICAvLyBMZXNzIHRoYW4KICAgIHByaW50ZigiYSA8IGI6ICVkXG4iLCBhIDwgYik7CgogICAgLy8gR3JlYXRlciB0aGFuIG9yIGVxdWFsIHRvCiAgICBwcmludGYoImEgPj0gYjogJWRcbiIsIGEgPj0gYik7CgogICAgLy8gTGVzcyB0aGFuIG9yIGVxdWFsIHRvCiAgICBwcmludGYoImEgPD0gYjogJWRcbiIsIGEgPD0gYik7CgogICAgLy8gRXF1YWwgdG8KICAgIHByaW50ZigiYSA9PSBiOiAlZFxuIiwgYSA9PSBiKTsKCiAgICAvLyBOb3QgZXF1YWwgdG8KICAgIHByaW50ZigiYSAhPSBiOiAlZFxuIiwgYSAhPSBiKTsKCiAgICByZXR1cm4gMDsKfQo=