using System;
public class Program
{
public static void Main()
// Loop through each row
for (int row = 4; row >= 1; row--)
// Print numbers from 1 to i
for (int num = 1; num <= row; num++)
Console.Write(num);
}
// Move to the next line after each row
Console.WriteLine();