Loops/Do-while: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 381: | Line 381: | ||
print(++val); |
print(++val); |
||
} while (val % 6);</lang> |
} while (val % 6);</lang> |
||
⚫ | |||
<lang lb> |
|||
a = 0 |
|||
do |
|||
⚫ | |||
⚫ | |||
loop until ( a mod 6) = 0 |
|||
</lang> |
|||
=={{header|Lisaac}}== |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
'\n'.print; |
|||
val % 6 != 0 |
|||
⚫ | |||
=={{header|Lua}}== |
=={{header|Lua}}== |
||
Line 393: | Line 412: | ||
until i%6 == 0 |
until i%6 == 0 |
||
</lang> |
</lang> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|Logo}}== |
=={{header|Logo}}== |