[ create a new paste ] login | about

Link: http://codepad.org/kYHPSvqx    [ raw code | output | fork ]

Lua, pasted on Aug 23:
1
2
3
4
5
6
for n = 1, 2, 0.1 do
        print(n)
        if n == 1.5 then
                break -- Terminate the loop instantly and do not repeat.
        end
end


Output:
1
2
3
4
5
6
7
8
9
10
1
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.8
1.9


Create a new paste based on this one


Comments: