static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            int answer = Arithmetic.Add(3, 7);

            Console.WriteLine("3 + 7 = " + answer);
            answer = Arithmetic.Sub(10, 6);
            Console.WriteLine("10 - 6 = " + answer);
            answer = Arithmetic.Mult(5, 7);
            Console.WriteLine("5 * 7 = " + answer);
            //answer = Arithmetic.Div(7, 2);
            //Console.WriteLine("7 / 2 = " + answer);
            answer = Arithmetic.Mod(2345, 317);
            bool TorF = Arithmetic.IsEvenlyDivisible(655, 5);

            Console.WriteLine($"655 is evenly divisible by 5: {TorF}");
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            int answer = Arithmetic.Add(3, 7);

            Console.WriteLine("3 + 7 = " + answer);
            answer = Arithmetic.Sub(10, 6);
            Console.WriteLine("10 - 6 = " + answer);
            answer = Arithmetic.Mult(6, 3);
            Console.WriteLine("6 * 3 = " + answer);
            answer = Arithmetic.Div(8, 2);
            Console.WriteLine("8 / 2 = " + answer);
            answer = Arithmetic.Mod(2546, 111);
            //Console.WriteLine("10 % 4 = " + answer);
            bool TorF = Arithmetic.IsEvenlyDivisible(655, 5);

            Console.WriteLine($"655 is evenly divisible by 5: {TorF}");
        }
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            int answer = Arithmetic.Add(3, 7);

            Console.WriteLine("3 + 7 = " + answer);
            answer = Arithmetic.Subtract(10, 6);
            Console.WriteLine("10 - 6 = " + answer);
            answer = Arithmetic.Mult(5, 7);
            Console.WriteLine("5 * 7 = " + answer);
            answer = Arithmetic.Div(7, 2);
            Console.WriteLine("7 / 2 = " + answer);
            //Console.WriteLine("100 % 7 = " + answer);
            answer = Arithmetic.Modulus(44398, 45);
            Console.WriteLine(answer);

            bool TorF = Arithmetic.isEvenDiv(655, 5);

            Console.WriteLine($"655 is evenly divivible by 112: {TorF}");
        }