main.cs267 chars12 lines
This code uses a loop to iterate from 1 to 100, and prints out "Fizz" for numbers divisible by 3, "Buzz" for numbers divisible by 5, and "FizzBuzz" for numbers divisible by both 3 and 5. If the number is not divisible by either 3 or 5, it prints the number itself.
gistlibby LogSnag