ps2: init

This commit is contained in:
2026-02-14 10:45:22 +01:00
parent 04fc81db96
commit cebd716ff8
18 changed files with 721 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
func callMe(i) {
println("i is now", i)
}
func main(start, end) {
var counter = start
while (counter < end) {
callMe(counter)
counter = counter + 1
}
// Go down again using while 1 + break
while (1) {
counter = counter - 1
if (counter < start)
break
callMe(counter)
}
}