diff options
| author | David Moc <personal@cdatgoose.org> | 2026-03-05 23:38:49 +0100 |
|---|---|---|
| committer | David Moc <personal@cdatgoose.org> | 2026-03-05 23:38:49 +0100 |
| commit | 0385817bb1301a778bb33f8405a435293b9f8905 (patch) | |
| tree | 53f4b6f13e393bd368c37ba4363826b46940dfd3 /tests/if_else.c | |
| parent | 262abf9b552a168ef3ae91f91af97683f16420a7 (diff) | |
Pushing to repo for safety.
Diffstat (limited to 'tests/if_else.c')
| -rw-r--r-- | tests/if_else.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/if_else.c b/tests/if_else.c new file mode 100644 index 0000000..2a0609a --- /dev/null +++ b/tests/if_else.c @@ -0,0 +1,18 @@ +int main() { + int x = 5; + int y = 0; + + if (x > 3) { + y = 10; + } else { + y = 20; + } + + if (x < 3) { + y = y + 1; + } else { + y = y + 2; + } + + return y; +} |
