Loops/While: Difference between revisions
Content added Content deleted
(→{{header|Prolog}}: added test in recursive case to prevent endless loop for negative numbers) |
|||
Line 38: | Line 38: | ||
ENDWHILE |
ENDWHILE |
||
ENDPROC</lang> |
ENDPROC</lang> |
||
=={{header|AppleScript}}== |
|||
AppleScript does not implement a standard out. Use the Script Editor's Event Log as the output. |
|||
<lang AppleScript >set i to 1024 |
|||
repeat while i > 0 |
|||
log i |
|||
set i to i / 2 |
|||
end repeat</lang> |
|||
=={{header|AutoHotkey}}== |
=={{header|AutoHotkey}}== |