G
G
gleb shtraus2020-10-02 15:11:32
C++ / C#
gleb shtraus, 2020-10-02 15:11:32

Find area and perimeter of triangle by coordinates via c# operands?

1 is all in the console

class mymath
    {
        private mymath()
        { }
        public static int sum(int a, int b)
        {
            return a + b;
        }
        public static int sub(int a, int b)
        {
            return a - b;
        }
        public static int mul(int a, int b)
        {
            return a * b;
        }
        public static int div(int a, int b)
        {
            return a / b;
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine(mymath.sum(23, 78));
            Console.ReadKey();
        }
    }

something like such a solution like an operand created how to initialize x and y is not entirely clear

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor, 2020-10-06
@exorka

Operands are some quantities or variables in an expression.
Not quite, that is, it is not at all clear what is meant?
And what is "initiate x and y"?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question