CompilerSysY/testcases/functional_test/44_add_prior_equal.sy
2023-05-08 21:15:52 +08:00

20 lines
282 B
Plaintext

// Add is prior than equal and not equal
int main () {
int a;
int b;
int c;
a = 1;
b = 4;
c = 28;
int t;
if (c + a != b) {
t = c % -b;
putint(t);
}
if (b - c == a) {
t = c%b+b;
putint(t);
}
return 0;
}