using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Rextester
{
public class Program
{
public static void Main(string[] args)
{
int i,j,charValue;
charValue=65;
for(i=1;i<=7;i++)
{
Console.WriteLine(" ");
for(j=1;j<=i;j++)
{
Console.Write(" "+ Convert.ToChar(charValue));
charValue++;
if(charValue==91)
{
break;
}
}
}
Console.Read();
}
}
}Output
A
B C
D E F
G H I J
K L M N O
P Q R S T U
V W X Y Z
