C# Program to Print Triangles
Program Statement:
Program Statement:
Write a program to produce the following output:
A B C D E F G F E D C B A
A B C D E F F E D C B A
A B C D E E D C B A
A B C D D C B A
A B C C B A
A B B A
A A
Solution:
Solution:
static void Main(string[] args)
{
int a, x, n = 71, o = 70, y = 1, c;
for (x = 1; x <= 7; x++)
{
for (a = 65; a <= n; a++)
{
Console.Write(Convert.ToChar(a));
}
if (x == 2)
o = 70;
for (c = 2; c < y; c++)
Console.Write(" ");
for (a = o; a >= 65; a--)
Console.Write((char)a);
Console.WriteLine();
n--;
o--;
y = y + 2;
}
Console.ReadLine();
}
BalasHapuspug puppies for sale,pug puppies for sale near me
teacup pugs for sale,teacup pugs,teacup pug puppies for sale,teacup pug for sale near me,pug for sale near me,pug puppies for sale under,teacup pugs,pug puppies near me,teacup pugs,teacup pug puppies for sale,pug puppy for sale,mini pug,baby pugs for sale,pug breeders near me,pugs puppies for sale,black pug puppies for sale,miniature pug,pug puppies,pugs for sale near me,pugs for sale near me,pugs puppies,teacup pug puppies for sale,pugs for sale,baby pugs for sale
Pug pupies for sale
pug puppies for sale near me
pug puppy for sale near me
teacup puppies for sale near me
Pug puppies for sale
pugs for sale
french bulldog puppies for sale
French Bulldog Puppy for sale near me