burritos/test_programs/riscv_instructions/boolean_logic/if.c
2023-02-08 15:01:41 +00:00

10 lines
151 B
C

int main() {
int x = 1;
if (x == 1 && x > 0) {
x = 2;
} else if (x || x == 0 ) {
x = 3;
} else {
x = 0;
}
}