r/tinycode • • Jul 21 '14

loop in less letters

in php:

while (@$a++<5){ .. }

@ suppresses warning but php initializes variable a at first ++

:)

you're welcome..

7 Upvotes

3 comments sorted by

4

u/[deleted] Jul 23 '14

Am I doing it right?

C

for(;;)

4

u/yogthos Jul 22 '14 edited Jul 22 '14

(range 5)

edit: range defaults to 0

2

u/Meshiest Jul 22 '14

ruby

5.times{}