TDT4205/exercises/05/vslc/vsl_programs/ps2-parser/while.vsl

11 lines
144 B
Plaintext

// check parsing of do-while loop
func main()
begin
var i
i := 2
while i < 42 do
i := i * i
print i
return 0
end