FizzBuzz: Difference between revisions
Content deleted Content added
→{{header|Ruby}}: Move continuation example to Jump anywhere#Ruby. |
→{{header|AutoHotkey}}: Add AppleScript version. |
||
Line 155:
<lang apl>⎕IO←0
(L,'Fizz' 'Buzz' 'FizzBuzz')[¯1+(L×W=0)+W←(100×~0=W)+W←⊃+/1 2×0=3 5|⊂L←1+⍳100]</lang>
=={{header|AppleScript}}==
<lang AppleScript>
property outputText: ""
repeat with i from 1 to 100
if i mod 15 = 0 then
set outputText to outputText & "FizzBuzz"
else if i mod 3 = 0 then
set outputText to outputText & "Fizz"
else if i mod 5 = 0 then
set outputText to outputText & "Buzz"
else
set outputText to outputText & i
end if
set outputText to outputText & linefeed
end repeat
outputText
</lang>
=={{header|AutoHotkey}}==
{{AutoHotkey case}}
|