Quick actions

cmd+k|ctrl+k

Navigation

Languages

Tadpoles

Snippet info

Language

Csharp

Visibility

public

Author

levi

Created

2016-03-17T16:42:51Z

Updated

2016-03-17T16:42:51Z

using System;

class MainClass {
    static void Main() {
        WithoutTadpoles();
        WithTadpoles();
    }
    
    static void WithoutTadpoles()
    {
        int x = 3;
        int y = 4;
        int z = (x - 1) * (y + 1);
        Console.WriteLine("Without Tadpoles: {0}",z);
    }
    
    static void WithTadpoles()
    {
        int x = 3;
        int y = 4;
        int z = ~-x * -~y;
        Console.WriteLine("With Tadpoles: {0}",z);
    }
}
INFO