Skip to content

Instantly share code, notes, and snippets.

@ssartell

ssartell/12.cs Secret

Created May 15, 2019 17:40
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ssartell/3444038e55da61b8b566d109ab8bd49f to your computer and use it in GitHub Desktop.
/* LINQ Puzzle #12 *******************************************************
Summary: Create a Fizz Buzz solution using LINQ, preferably a single
line. The classic Fizz Buzz works as follows. Print the numbers from 1
to 100, but for multiple of 3 print "Fizz" instead of the number, and for
multiples of 5 print "Buzz". For numbers which are multiples of both
3 and 5 print "FizzBuzz". Each number should have it's own line. And for
printing, use the Console class.
http://blog.codinghorror.com/why-cant-programmers-program/
************************************************************************/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment