ps3: init
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user