public class DotNetPad
{
    public static void Main(string[] args)
    {
        for(int x = 1; x < 100; x++)
        {
            bool fizz = x % 3 == 0;
            bool buzz = x % 5 == 0;
            if(fizz && buzz)
                Console.WriteLine("FizzBuzz");

Pasted 37 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        Console.WriteLine("Hello World!  Fizz.  This is a test.  1\n 2\n");
    }
}

Pasted 127 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        for(int i = 1;i <= 100;i++) {
            string test = "";
            test =+ (i % 3) == 0 ? "Fizz" : "";
            test =+ (i % 5) == 0 ? "Buzz" : "";
            if (i == 5) {
                Console.Write(+(i%5));

Pasted 174 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        for(int i = 1;i <= 100;i++) {
            string test = "";
            test =+ (i % 3) == 0 ? "Fizz" : "";
            test =+ (i % 5) == 0 ? "Buzz" : "";
            if (i == 5) {
                Console.Write("Test: " + test);

Pasted 174 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        for(int i = 1;i <= 100;i++) {
            string test = "";
            test += (i % 3) == 0 ? "Fizz" : "";
            test += (i % 5) == 0 ? "Buzz" : "";
            Console.Write(!String.IsNullOrEmpty(test) ? test + "\n" : i + "\n");
        }

Pasted 174 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        for(int i = 1;i <= 100;i++) {
            string test = "";
            test += (i % 3) == 0 ? "Fizz" : "";
            test += (i % 5) == 0 ? "Buzz" : "";
            Console.Write(!String.IsNullOrEmpty(test) ? test : i + "\n");
        }

Pasted 174 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        for(int i = 1;i <= 100;i++) {
            string test = "";
            test =+ (i % 3) == 0 ? "Fizz" : "";
            test =+ (i % 5) == 0 ? "Buzz" : "";
            Console.Write(!String.IsNullOrEmpty(test) ? test : i + "\n");
        }

Pasted 176 days ago


Pasted 368 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        for(int x = 0; x <= 100; x++)
        {
            bool fizz = x % 3 == 0;
            bool buzz = x % 5 == 0;
            if(fizz && buzz)
                Console.WriteLine("FizzBuzz");

Pasted 457 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        Console.WriteLine("Hello World!");
        FizzBuzz();
    }
    public static void FizzBuzz()
    {
        for (int i = 1; i <= 100; i++)

Pasted 515 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        Console.WriteLine("Hello World!");
        FizzBuzz();
    }
    public static void FizzBuzz()
    {
        for (int i = 0; i <= 100; i++)

Pasted 515 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
                   var dict = new Func<int, string>[2, 2];
            dict[0, 0] = i => i.ToString();
            dict[0, 1] = i => "Fizz";
            dict[1, 0] = i => "Buzz";
            dict[1, 1] = i => "FizzBuzz";
            Console.Write(String.Join(Environment.NewLine, Enumerable.Range(1, 100).Select(i => dict[i%3 == 0 ? 1 : 0, i%5 == 0 ? 1 : 0](i))));

Pasted 573 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {            
            var dict = new Func<int, string>[2, 2];
            dict[0, 0] = i => i.ToString();
            dict[0, 1] = i => "Fizz";
            dict[1, 0] = i => "Buzz";
            dict[1, 1] = i => "FizzBuzz";
            Console.Write(String.Join(Environment.NewLine, Enumerable.Range(1, 100).Select(i => dict[i%3 == 0 ? 1 : 0, i%5 == 0 ? 1 : 0](i))));

Pasted 659 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {            Func<int, string>[,] dict = new Func<int, string>[2, 2];
            dict[0, 0] = i => i.ToString();
            dict[0, 1] = i => "Fizz";
            dict[1, 0] = i => "Buzz";
            dict[1, 1] = i => "FizzBuzz";
            Enumerable.Range(1, 100).ToList().ForEach(i => Console.WriteLine(dict[i%3==0?1:0,i%5==0?1:0](i)));
    }

Pasted 659 days ago

// https://github.com/squimmy
public class DotNetPad
{
    public static void Main(string[] args)
    {
        var r = new Random(907095613);           
        foreach (var fizzbuzz in Enumerable.Repeat(
            Enumerable.Range(0, 15).Select(
                x => r.Next() & 3), 7).SelectMany(x => x).Select(
                (x, i) => new[] { 

Pasted 806 days ago