source:
CIVL/mods/dev.civl.abc/examples/c/ifthen.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 146 bytes | |
| Line | |
|---|---|
| 1 | int x = 0; |
| 2 | int y = 0; |
| 3 | int main() { |
| 4 | x = 7; |
| 5 | if (x > 0) { |
| 6 | x++; |
| 7 | } else { |
| 8 | if (y > 0) |
| 9 | x--; |
| 10 | else |
| 11 | x -= 7; |
| 12 | } |
| 13 | x = 42; |
| 14 | } |
Note:
See TracBrowser
for help on using the repository browser.
