LUA three round-robin fashion for repeat until while

Code is as follows:
Print ( 'I started learning the cycle')

1.while:
the while to true do
Print ( 'I started the cycle of impunity')
End

2.For
-var EXP2 from exp1 to change, as every change in increments of exp3 var, and perform a "executable", exp3 is optional, if not specified, the default is. 1
-for var = exp1, EXP2 , EXP3 do
- <executable>
-END
for i = 1,10,1 do
Print ( 'I began to have a cyclic order of' ... i); - ... is connected to a mean value i i change in the
end

An until 3.repeat
I = 0;
REPEAT
Print ( 'I began to have the number of cycles' ... I);
I = I +. 1
an until (I> 10)

Published 49 original articles · won praise 3 · Views 5618

Guess you like

Origin blog.csdn.net/nb_zsy/article/details/104252698