using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace drawfigures { class drawtriangle { static void Main(string[] args) { int a; Console.WriteLine("Please enter the length of the perpendicular side of the isosceles rectangle: "); a = Convert.ToInt32(Console.ReadLine()); DrawTriangle(a); } static void DrawTriangle(int side) { int i, j; for (i = 1; i <= side; i++) { for (j = 1; j <= i; j++) // inner loop prints 1 line of stars { Console.Write("*"); } Console.Write("\n"); // end of line is put to the end of each line } } } }