while loops work!

This commit is contained in:
SpookyDervish
2025-10-15 18:44:15 +11:00
parent 549f650b54
commit 9f6fff9977
7 changed files with 155 additions and 86 deletions

View File

@@ -1,4 +1,10 @@
main = Func(): Int {
$print("Hello, World!");
return 0;
a: Int = 0;
while a < 10 {
$print("a = %i\n", a);
a = a + 1;
}
return a;
}