diff options
Diffstat (limited to 'test/loop.c')
-rw-r--r-- | test/loop.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/loop.c b/test/loop.c new file mode 100644 index 0000000..b459e3a --- /dev/null +++ b/test/loop.c @@ -0,0 +1,10 @@ +int main() { + int max = 5; + int acc = 0; + + for (int i = 0; i < max; i++) { + acc += i; + } + + return acc + 2; +} |