FizzBuzz/EsoLang: Difference between revisions
Correct typo in comment under Brainf*** section
(FizzBuzz/EsoLang en Fish) |
(Correct typo in comment under Brainf*** section) |
||
(13 intermediate revisions by 3 users not shown) | |||
Line 3:
<br><br>
==
Infinite loop:
<
.-#1--\
|
Line 23:
| \--/ \--{+}--/ |
\---------------------------------------/
</syntaxhighlight>
Based on above, but simplified and it stops :)
<
%!for_in_range.dots f
Line 45:
\-#101-+/
|
</syntaxhighlight>
===Beeswax===
Simple solution:
<
>@F5~%"d@F{ > @F q
_1>F3~%'d`Fizz`@F5~%'d >`Buzz`@FNp
;bL@~.~4~.5~5@ P<</
More clever solution, checking n%5 only on one path:
<
> q >Ag'd@{?p
_>"1F3~%'d`Fizz`f>@F5~%'d`Buzz`@p
b P~;"-~@~.+0~P9@N?<</
==
(befunge 93)
<
v <>:1-:^
|:<$ < ,*48 <
Line 71:
v "buzz"0<>:. ^
|!%5: <
>:#,_ $> ^</
==
<
Memory:
Line 109:
>>
[
Do
Decrement counter
Line 229:
<<<<[-]++++ ++++ ++++ +.---.[-]>>
]
<<</
==
This was clearly a challenge in a language
without a modulus operator,
Line 237:
and no way to define text (except 1 character at a time on a stack).
<
This is FizzBuzz
Line 423:
Repeat until quoted.
Put chocolate into the 1st mixing bowl.
Refrigerate.</
==
<
[1\$3d;!["Fizz"\%0\]?$5d;!["Buzz"\%0\]?\[$.]?"
"]f:
0[$100\>][1+f;!]#%</
▲=={{header|Fish}}==
▲<lang Fish>0voa ~/?=0:\
voa oooo'Buzz'~< /
>1+:aa*1+=?;::5%:{3%:@*?\?/'zziF'oooo/
^oa n:~~/</
<syntaxhighlight lang="lolcode">HAI 1.3
▲=={{header|LOLCODE}}==
IM IN YR fizz UPPIN YR i TIL BOTH SAEM i AN 100
Line 457 ⟶ 455:
IM OUTTA YR fizz
KTHXBYE</
Another method using LOLCODE 1.2
<
I HAS A NUMZ ITZ 1
IM IN YR FIZZR UPPIN YR NUMZ TIL BOTH SAEM NUMZ AN 100
Line 475 ⟶ 473:
OIC
IM OUTTA YR FIZZR
KTHXBYE</
===Piet===
Código sacado de https://github.com/zphixon
[https://github.com/zphixon/piet-projects/blob/master/fizzbuzz.png FizzBuzz image]
==
<syntaxhighlight lang="small">
+++++++++++++++++++++++++++++++++++++++++++++++++.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.
Line 891 ⟶ 895:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</
==
<
// / 'u' @@@@@=@+++++#
// // / 'z' @=@@@@+@++++#
Line 928 ⟶ 932:
/<+> -\!?-\!?-\!?-\!?-\!
\?!\-?!\-?!\-?!\-?!\-?/\ div10
# +/! +/! +/! +/! +/</
==
<syntaxhighlight lang="whitespace">
Line 994 ⟶ 997:
</syntaxhighlight>
This solution was generated from the following pseudo-Assembly.
<
0:
Line 1,026 ⟶ 1,029:
push 101 sub
jn 0 ; Go again unless we're at 100.
pop exit ; Exit clean.</
|