From 0385817bb1301a778bb33f8405a435293b9f8905 Mon Sep 17 00:00:00 2001 From: David Moc Date: Thu, 5 Mar 2026 23:38:49 +0100 Subject: Pushing to repo for safety. --- tests/while_loop.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/while_loop.c (limited to 'tests/while_loop.c') diff --git a/tests/while_loop.c b/tests/while_loop.c new file mode 100644 index 0000000..0199879 --- /dev/null +++ b/tests/while_loop.c @@ -0,0 +1,11 @@ +int main() { + int i = 0; + int sum = 0; + + while (i < 5) { + sum = sum + i; + i = i + 1; + } + + return sum; +} -- cgit v1.2.3