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

11 lines
144 B
Plaintext
Raw Normal View History

2022-03-31 21:23:57 +02:00
// 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