Loops/While: Difference between revisions
Content added Content deleted
(putting my knowledge of the Rockstar language to the test, but at least I copied down the JavaScript and Python versions of the task to help me do a line-by-line translation) |
|||
Line 2,907: | Line 2,907: | ||
</syntaxhighlight> |
</syntaxhighlight> |
||
=={{header|Rockstar}}== |
|||
<syntaxhighlight lang="rockstar">The sky is a television on fire. |
|||
The floor is ornamental. |
|||
The table is hydrochloric. |
|||
While the sky is higher than the floor, |
|||
Shout the sky. |
|||
Put the sky over the table into the sky. |
|||
(Rockstar is known for doing that JavaScript quirk, since all numbers are floats, but due to it having the same limits as JavaScript and the most popular interpreter being JS-based, the loop is finite, yet you don't get the result you would get in something like Python.)</syntaxhighlight> |
|||
=={{header|Ruby}}== |
=={{header|Ruby}}== |
||
<syntaxhighlight lang="ruby">i = 1024 |
<syntaxhighlight lang="ruby">i = 1024 |