Files
marqdo-cli/tests/conformance/semantics/85-nested-loop-control.mq.md
T

295 B

@exec main

外 = 0

合计 = 0

while 外 < 3

外 = 外 + 1

内 = 0

while 内 < 4

内 = 内 + 1

if 内 == 1

continue

else if 内 == 3

break

end

合计 = 合计 + 外

end

if 外 == 2

continue

end

合计 = 合计 + 10

end

return 合计