using System;
class PatternProgramming
{
public static void Main()
{
int row,i,j,k;
Console.Write("Enter the no. of row you wantt to print: ");
row=Convert.ToInt32(Console.ReadLine());
for(i=1;i<=row;i++)
{
for(j=row-i;j>=1;j--)
Console.Write(" ");
for(k=1;k<=i;k++)
Console.Write("@");
Console.WriteLine();
}
}
}
Fig: Snapshot of Output |