using System;
public class Program
{
public static void Main(string[] args)
{
int rows = int.Parse(Console.ReadLine());
for (int i = 1; i <= rows; i++)
{
for (int j = 1; j <= i; j++)
{
Console.Write(j);
}
Console.WriteLine();
}
}
}
Write a c# program to print number triangle.
Reviewed by Bhaumik Patel
on
5:36 AM
Rating: 5