Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prog/ Challenge

Name: Anonymous 2018-04-15 1:54

Write a fizzbuzz program in a language you've never used before.
It's not hard, but I assume that if you come up with difficult challenges, people won't do them.

Name: Anonymous 2018-04-16 7:42

fun main() {
for(i := 1; i <= 100; i++) {
fizzbuzz(i);
}
}

fun fizzbuzz() {
var fizz = !(i % 3);
var buzz = !(i % 5);
if (fizz && buzz)
echo("fizzbuzz");
else if (fizz)
echo("fizz");
else if (buzz)
echo("buzz");
else
echo(i);
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List