number-some sort of a triangle

CSharp · Console

/Program.cs

using System;
					
public class Program
{
	public static void Main()
	{
		int n = int.Parse(Console.ReadLine());
		
		
		for(int row = 1; row <= n; row++)
		{
			for(int col = 1; col <= n-row+1; col++)
			{
				Console.Write((col+row - 1) + " ");
			}
			
			Console.WriteLine();
		}
	
	}
}
;