- fibonize - generate fibonacci sequence (to stdout)
- increment - start counting from 1 (to stdout)
- fizzbuzz - (reads stdin) fizz multiples of three, buzz multiples of five, fizzbuzz multiples of both three and five.
- fizzbuzz also checks for prime
- compile using 'make'
- run fizzbuzz using 'make fizzbuzz'
- run fibobuzz using 'make run'
# reads standard input until EOF
echo 42 | ./bin/fizzbuzz
echo 7 | ./bin/fizzbuzz
echo 300000 | ./bin/fizzbuzz
echo 300000000000000000000000000000000000000000 | ./bin/fizzbuzz
printf '30\n31' | ./bin/fizzbuzz # line delimited
echo 1 test 2 | ./bin/fizzbuzz # non-digit chars
echo 1 2 3 | ./bin/fizzbuzz # space delimited
# try even larger numbers!
aerth [email protected]