Added for loops

This commit is contained in:
Nathan Braswell
2016-01-19 11:47:09 -05:00
parent c4abfca98e
commit 162cc98f30
5 changed files with 41 additions and 7 deletions

View File

@@ -9,9 +9,7 @@ fun simple_print(to_print: int) {
printf("%d", to_print);
"""
}
/*var a = 1*/
/*var b = 2*/
var a:int
var a = 1
var b:int

View File

@@ -35,6 +35,9 @@ fun main(): int {
while (counter) {
simple_print(--counter)
}
simple_print("\n")
for (var j = 0; j < 10; j++;)
simple_print(j)
return 0
}