Producing triangles of asterisks based on height I have created a simple terminal program: it allows the user to enter a height and it will produce triangles of asterisks (*'s) based on the height.

I have just started learning C# as practice for my internship. I would appreciate any feedback.

using System;

public class Triangle
{
    public int height;
    private string pyramid = "";

    public Triangle(int height)
    {
        this.height = height;
    }

    public String makeTriangle()
    {
        //4 
        //   *    = 1         ***+***  = Even on both sides  7/2  
        //  ***   = 3 - (+2)  **+++**  = 
        // *****  = 5 - (+2)  *+++++*
        //******* = 7 - (+2)  +++++++
        int cutEnds = biggestOddNumber() / 2;

        for (int i = 0; i &lt; height; i++)
        {
            for (int j = 1; j &lt;= biggestOddNumber(); j++)
            {
                String singleElement = "*";

                if (j &lt;= cutEnds || j &gt; (biggestOddNumber()-cutEnds))
                {
                    pyramid = pyramid + " ";
                }
                else
                {
                    pyramid = pyramid + singleElement;
                }

                if (j == biggestOddNumber())
                {
                    pyramid = pyramid + "\r\n";
                }
            }
            cutEnds--;

        }
        return pyramid;
    }

    public int biggestOddNumber()
    {
        // 1 2 3 4 5 6 7 8 9 10
        // ?   ?   ?   ?
        //                  
        //Formula for Odd Numbers = 2n + 1
        //2*0 + 1 = 1
        //2*1 + 1 = 3
        //2*2 + 1 = 5
        //...
        // we do height -1 since if you look at formula we start from 0 not 1 
        // if we do 2*4 + 1 = (9) 
        //4 
        //   *    = 1        
        //  ***   = 3 - (+2)
        // *****  = 5 - (+2)
        //******* = 7 - (+2) However it should be (7)

        return (2 * (height-1) + 1);

    }
}


Main method

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {

            Console.WriteLine("Enter height of pyramid");
            int height = int.Parse(Console.ReadLine());
            Triangle triangle = new Triangle(height);
            Console.WriteLine(triangle.makeTriangle());
        }
    }
}
You should read Naming guidelines and apply them to your code.
pyramid should be a local variable. Otherwise calling makeTriangle more than once will produce incorrect results.
There is no need for biggestOddNumber to be public.
singleElement should be a constant field.
You can use String.PadRight and String.PadLeft methods to pad the string with spaces (or any other character) from both sides. Instead of manually doing it in hard-to-understand loop.