Pasted 117 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 207 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 264 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 323 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 408 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 408 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        for (int i = 0; i < 16; i++)
        {
            Console.Write("%i - ", i);
            if (i % 15 == 0)
                Console.Write("FizzBuzz");
            else if (i % 5 == 0)

Pasted 430 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        for(int i = 1; i <= 100; i++)
        {
            string value;
            Console.Write("%i - ", i);
            if (i % 15 == 0)
                Console.Write("Fizzbuzz");

Pasted 526 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        // Fizzbuzz
        for(int i = 1; i <= 100; i++)
        {
            string value;
            System.Console.Write("%i - ", i);
            if (i % 15 == 0)

Pasted 526 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 555 days ago

public class Default {
    public static void Main(string[] args) {
        var f = new Func<int, object>[] {
            i=> "FizzBuzz",i=> "Buzz", i=> i};
        //foreach (var x in Enumerable.Range(0, 3).Select(i=>f[i](i))) {
    var x1  = f[0](0);var x2  = f[1](1);var x3  = f[2](2);
           // Console.WriteLine(Enumerable.Range(0, 3).Select(i=>f[0](0)));
       Console.WriteLine(x1);
       Console.WriteLine(x2);
       Console.WriteLine(x3);

Pasted 576 days ago

public class Default {
    public static void Main(string[] args) {
        var f = new Func<int, object>[] {
            i=> "FizzBuzz",i=> "Buzz", i=> i};
        //foreach (var x in Enumerable.Range(0, 3).Select(i=>f[i](i))) {
    var x1  = f[0](0);var x2  = f[0](0);var x3  = f[0](0);
           // Console.WriteLine(Enumerable.Range(0, 3).Select(i=>f[0](0)));
       Console.WriteLine(x1);
       Console.WriteLine(x2);
       Console.WriteLine(x3);

Pasted 576 days ago

public class Default {
    public static void Main(string[] args) {
        var f = new Func<int, object>[] {
            i=> "FizzBuzz",i=> "Buzz", i=> i};
        //foreach (var x in Enumerable.Range(0, 3).Select(i=>f[i](i))) {
    var x  = f[0](0);
           // Console.WriteLine(Enumerable.Range(0, 3).Select(i=>f[0](0)));
       Console.WriteLine(x);
       //Console.WriteLine(f[2][2]);
        //}

Pasted 576 days ago

public class Default {
    public static void Main(string[] args) {
        var f = new Func<int, object>[] {
            i=> "FizzBuzz",i=> "Buzz", i=> i};
        foreach (var x in Enumerable.Range(0, 3).Select(i=>f[i](i))) {
            Console.WriteLine(x);
        }
}
}

Pasted 576 days ago

public class Default {
    public static void Main(string[] args) {
        var f = new Func<int, object>[] {
            i=> "FizzBuzz",i=> "Buzz", i=> i};
        foreach (var x in Enumerable.Range(0, 3).Select(i=>f[i](i))) {
            Console.WriteLine(x);
        }
}
}

Pasted 577 days ago