You are on page 1of 2

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace ConsoleApplication1

class Program

static void Main(string[] args)

for (char i = 'A'; i <= 'D'; i++)

for (char j = 'A'; j <= i; j++)

Console.Write(j);

Console.WriteLine();
}

for (char h = 'C'; h >= 'A'; h--)

for (char l = 'A'; l <= h; l++)

Console.Write(l);

Console.WriteLine ();

Console.ReadLine();

You might also like