BurritOS/test_programs/riscv_instructions/boolean_logic/if.c

10 lines
151 B
C
Raw Normal View History

2023-02-08 16:01:41 +01:00
int main() {
int x = 1;
if (x == 1 && x > 0) {
x = 2;
} else if (x || x == 0 ) {
x = 3;
} else {
x = 0;
}
}