questionnaire for /g/
-what is your favourite programming language?
-what is your favourite anime?
-what is the airspeed velocity of an unladen swallow?
-produce a fizzbuzz in your favourite programming language, and post it.
my favourite language is perl, my favourite anime is mouretsu pirates, and i'll leave the third question as an exercise for the viewer ;~)
here's my fizzbuzz:use strict;
use warnings;
my $i = 1;
my $start = 1;
my $stop = 100;
$i = $start;
while ($i <= $stop) {
my $d2 = "";
my $d5 = "";
if (($i%2) == 0) {
$d2 = "fizz";
}
if (($i%5) == 0) {
$d5 = "buzz";
}
if ($d2 eq "fizz" || $d5 eq "buzz") {
print ($d2 . $d5, "\n");
}
else {
print "$i\n";
}
$i = $i+1;
>>60303084
>using the smiley with a squiggly nose
by the way, if you have trouble replying to this thread with your fizzbuzz, the trick is to scroll up to the top and use the original reply form
dumb makiposter
Have anime posters ever produced anything of value on this site?
>>60303084
> Javascript or C++
> Jojo's Bizarre Adventure: Diamond is not crash
> European or African?
> Why should I when the dumb Maki posters doesn't even know that fizzbuzz is supposed to be with 3 and 5, not 2 and 5
Maki a shit.
>>60303141
who are you quoting
>>60303190
Fuck off you know what it means
>>60303190
Haha wow he said the /jp/ meme do it again :*)
>>60303103
anime website
MAKI!!!!!!!!!!!!~
>>60303084
>Python
>Ginga Eiyuu Densetsu
>Depends on whether it is African or European
Re: 60303252
It's pretty funny how you can spot the new users who just encountered /jp/ after april fool's day when /pol/ told them that was the new boogeyman
>>60303301
>Re: 60303252
Double arrows
>>60303301
This is not e-mail, newfag
@60303309,60303343
please don't reply unless your contributing to the thread. so far not even one person has posted a fizzbuzz
>>60303084%!PS-Adobe-2.0
/in {72 mul} def
/topmar {1 in 10 in} def
/setup {
/Helvetica-BoldOblique 12 selectfont
topmar moveto
} def
/jump { currentpoint 14 sub exch pop 1 in exch moveto } def
setup
1 1 100 {
/flag true def
dup 3 mod 0 eq
{ (Fizz) show /flag false def }
if
dup 5 mod 0 eq
{ pop (Buzz) show /flag false def }
{ flag { ( ) cvs show } { pop } ifelse }
ifelse
jump
currentpoint exch pop 1 in le { showpage setup } if
} for
Yeah, i wrote that code some days ago because I was lazy, incredibly it works on a printer. Now, answering the questionnaire:
>C and Python
>anime? what's that?
>???
>>60303454
lol is this postscript
nice one
>>60303522
Yep, real postscript.
My P2055dn prints it without complaining.
>mfw i wasted 2 sheets of paper to print that
>>60303212
>>60303252
Falling for such a weak b8
>>60303266
So no.
>>60303806
well, they created the website, and are the target demographic