This program prints the patron in the shape of Right Angle Triangle. public static void Main() { int no = 5; for (int i = 1; i <= 5; i++) { for (int j = 1; j <= i; j++) { Console.Write(i); } Console.WriteLine(); } Console.ReadKey(); }
No comments