Esempio n. 1
0
        static void Main(string[] args)
        {
            MyInt a = new MyInt(20);
            MyInt b = new MyInt(20);

            a = a.Multiply(b);
            Console.WriteLine(a.Value);

            MyInt dde = new MyInt(462);
            MyInt tte = new MyInt(1071);
            MyInt ans = new MyInt(21);

            dde = dde.Gcd(tte);

            Console.WriteLine(dde.Value);
            Console.WriteLine(dde.longValue());

            Console.WriteLine("Нажмите любую клавишу");
            Console.ReadKey();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            MyInt a = new MyInt(20);
            MyInt b = new MyInt(20);

            //MyInt ans = new MyInt(45);

            //a = a.Sub(b);
            a = a.Multiply(b);
            Console.WriteLine(a.Value);

            MyInt dde = new MyInt(462);
            MyInt tte = new MyInt(1071);
            MyInt ans = new MyInt(21);

            dde = dde.Gcd(tte);

            Console.WriteLine(dde.Value);
            Console.WriteLine(dde.longValue());

            Console.WriteLine("Press any key...");
            Console.ReadKey();
        }