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();
}
These molecules then find their way to your hair strands and ingrain themselves there. This is why, if your hair is long, its extreme ends could test positive for drugs that you consumed a long time ago. Go online and conduct some research on the firm that makes the detox shampoo before you fork over your hard-earned money and stake your career on it. If there are largely negative or no reviews, steer clear of that product. Instead, stay well hydrated and follow a healthy, low-fat diet. This will ensure the best results. Visit: https://www.urineworld.com/
BalasHapus