fizz buzz bash in csharp

main.cs
for (int i = 1; i <= 100; i++)
{
    if (i % 3 == 0 && i % 5 == 0)
        Console.WriteLine("FizzBuzz");
    else if (i % 3 == 0)
        Console.WriteLine("Fizz");
    else if (i % 5 == 0)
        Console.WriteLine("Buzz");
    else
        Console.WriteLine(i);
}
267 chars
12 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