Am I following all coding rules?
So, I don't have an issue with this project. However, I am learning to program and decided to program a simple console program to do the midpoint formula(I'm in geometry right now) for me.

The program could be simplier and just give me the answer but I want this to do my homework for me, so I need to show the work. So, that is all to explain, I would just like to know if I'm breaking any coding standards.

Here's my code:

    class midpointFormula
    {

    static void Main()

    {
        int x1, x2, y1, y2;
        decimal x, midx, y, midy;

        System.Console.WriteLine("This program calculates the midpoint of two endpoints");
        System.Console.WriteLine("Notes:");
        System.Console.WriteLine("1. This program outputs in decimals not fractions");
        System.Console.WriteLine("2. This program also shows the work as if you did it out");

        System.Console.Write("Enter x1: ");
        int.TryParse(System.Console.ReadLine(), out x1);

        System.Console.Write("Enter x2: ");
        int.TryParse(System.Console.ReadLine(), out x2);

        System.Console.Write("Enter y1: ");
        int.TryParse(System.Console.ReadLine(), out y1);

        System.Console.Write("Enter y2: ");
        int.TryParse(System.Console.ReadLine(), out y2);

        System.Console.WriteLine();
        System.Console.WriteLine("========================================================");
        System.Console.WriteLine();

        System.Console.WriteLine("{0}+{1}/2 , {2}+{3}/2", x1, x2, y1, y2);

        x = x1 + x2;
        y = y1 + y2;

        System.Console.WriteLine("{0}/2 , {1}/2", x, y);

        midx = x / 2;
        midy = y / 2;

        System.Console.WriteLine("{0} , {1}", midx, midy);

        System.Console.ReadKey();
    }

    }

Note: I am not actually using this to do my homework, I do my homework now. (I didn't last year)
Am I following all coding rules?
===

So, I don't have an issue with this project. However, I am learning to program and decided to program a simple console program to do the midpoint formula(I'm in geometry right now) for me.

The program could be simplier and just give me the answer but I want this to do my homework for me, so I need to show the work. So, that is all to explain, I would just like to know if I'm breaking any coding standards.

Here's my code:

    class midpointFormula
    {

    static void Main()

    {
        int x1, x2, y1, y2;
        decimal x, midx, y, midy;

        System.Console.WriteLine("This program calculates the midpoint of two endpoints");
        System.Console.WriteLine("Notes:");
        System.Console.WriteLine("1. This program outputs in decimals not fractions");
        System.Console.WriteLine("2. This program also shows the work as if you did it out");

        System.Console.Write("Enter x1: ");
        int.TryParse(System.Console.ReadLine(), out x1);

        System.Console.Write("Enter x2: ");
        int.TryParse(System.Console.ReadLine(), out x2);

        System.Console.Write("Enter y1: ");
        int.TryParse(System.Console.ReadLine(), out y1);

        System.Console.Write("Enter y2: ");
        int.TryParse(System.Console.ReadLine(), out y2);

        System.Console.WriteLine();
        System.Console.WriteLine("========================================================");
        System.Console.WriteLine();

        System.Console.WriteLine("{0}+{1}/2 , {2}+{3}/2", x1, x2, y1, y2);

        x = x1 + x2;
        y = y1 + y2;

        System.Console.WriteLine("{0}/2 , {1}/2", x, y);

        midx = x / 2;
        midy = y / 2;

        System.Console.WriteLine("{0} , {1}", midx, midy);

        System.Console.ReadKey();
    }

    }

Note: I am not actually using this to do my homework, I do my homework now. (I didn't last year)