x = 0 while x < 5 do print x x = x + 1 endwhile y = 0 while y < x do print y y = y + 1 endwhile