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

Pasted 7 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 54 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 54 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 54 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 54 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 56 days ago


Pasted 248 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 337 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 395 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 395 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 453 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 539 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 539 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 686 days ago

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

Pasted 707 days ago