>There are people on /g/ right now who can't Fizz Buzz
>>61157041FizzBuzz();
System.out.println ("fizz buzz");
<html>Fizz<br>Buzz<br></html>
>[-]>[-]++++[<++++++++++++++++>-]<++++++>[-]>[-]++++++[<++++++++++++++++>-]<+++++++++>[-]>[-]+++++++[<++++++++++++++++>-]<++++++++++>[-]>[-]+++++++[<++++++++++++++++>-]<++++++++++>[-]>[-]++[<++++++++++++++++>-]<>[-]>[-]++++[<++++++++++++++++>-]<++>[-]>[-]+++++++[<++++++++++++++++>-]<+++++>[-]>[-]+++++++[<++++++++++++++++>-]<++++++++++>[-]>[-]+++++++[<++++++++++++++++>-]<++++++++++>++++++++++[<]>[.>]
Wanted to post pic related, but 4chan refuses it for some reason
>>61157333
can't put script tags in code tags is my guess
echo "fizz buzz";
I'm sure I could if someone reminded me what fizz buzz means
$ mail -s "I need a Fizz Buzz program by lunchtime" [email protected]
hf
EOT
#include <iostream>
template <class T>
void fizzbuzzprinter (std::ostream &os, T n) {
(void) n;
os << "fizzbuzz";
}
template <class T>
void buzzprinter (std::ostream &os, T n) {
(void) n;
os << "buzz";
}
template <class T>
void fizzprinter (std::ostream &os, T n) {
(void) n;
os << "fizz";
}
template <class T>
void printer (std::ostream &os, T n) {
os << n;
}
template <class T>
void (*getprinter (T n)) (std::ostream &, T) {
if (n % 15 == 0) {
return fizzbuzzprinter;
} else if (n % 5 == 0) {
return buzzprinter;
} else if (n % 3 == 0) {
return fizzprinter;
} else {
return printer;
}
}
template <class T>
void fizzbuzz (std::ostream &os) {
for (T n (1); n <= 100; n++) {
getprinter (n) (os, n);
os << std::endl;
}
}
int main () {
fizzbuzz<int> (std::cout);
return 0;
}
>>61158085
>there are people on /g/ right now who don't even know what fizzbuzz is
#!/bin/sh
set -e
rm -f fizzbuzz.c
(
echo "#include <stdio.h>"
echo
echo "int main (void) {"
echo " int i;"
echo " for (i = 1; i <= 100; i++) {"
echo " if (i % 15 == 0) {"
echo " printf (\"fizzbuzz\n\");"
echo " } else if (i % 5 == 0) {"
echo " printf (\"buzz\n\");"
echo " } else if (i % 3 == 0) {"
echo " printf (\"fizz\n\");"
echo " } else {"
echo " printf (\"%d\n\", i);"
echo " }"
echo " }"
echo " return 0;"
echo "}"
) >fizzbuzz.c
chmod -w fizzbuzz.c
gcc\
-std=c89\
-Wall -Wextra -pedantic\
-Werror -Wfatal-errors\
-Ofast\
-o fizzbuzz fizzbuzz.c
./fizzbuzz
>>61157041
>there are people
>are
>>61160579
what is wrong with this
>>61160805
Name one(1) people, I'll wait.
import fizzbuzz;
I can't even hello world. I'm here because it's time for you nerds to accept this is /v/'s tech support.
>>61160843
>>61157187
source on the grill
Please do the needful.
>>61157041
Its a problematic test anyway
>>61160979
Please off yourself
>>61162420
She should seriously kill herself now, that is a new level of retardation