Example #1
0
    static void Main()
    {
        ShowBits b = new ShowBits(8);
        ShowBits i = new ShowBits(32);
        ShowBits li = new ShowBits(64);

        Console.WriteLine("123 in binary: ");
        b.Show(123);
        Console.WriteLine("\n87987 in binary: ");
        i.Show(87987);
        Console.WriteLine("\n237658768 in binary: ");
        li.Show(237658768);
    }
Example #2
0
    static void Main(string [] args)
    {
        ShowBits sb1 = new ShowBits(8);
        ShowBits sb2 = new ShowBits(16);
        ShowBits sb3 = new ShowBits(32);
        ShowBits sb4 = new ShowBits(64);

        sb1.Show(123);
        sb2.Show(123);
        sb3.Show(123);
        sb4.Show(123);
        //sb2.Show(456);
        //sb3.Show(789);
    }
Example #3
0
        static void Main()
        {
            ShowBits b = new ShowBits(1024);

            b.Show(134252542422432425);
        }