Darwis Techno, MRT Dongle MTK Tool, AT&T to Compete with Verizon, Android TV, latest KitKat, stock firmware, Oppo Update Version Firmware Flash, Android Jelly Bean

C# Program to Print Triangles

C# Program to Print Triangles - every day there is always the latest gadget that is born, if we do not update the information then we will be outdated, even though we do not have the gadget but at least we know the information, on the blog Darwis Techno we are discussing a lot of information from various brands gadgets, now we will discuss first about C# Program to Print Triangles we have gathered information to make this article, please read to finish

Articles : C# Program to Print Triangles
full Link : C# Program to Print Triangles
Article Csharp, Article programming, Article programs,

You can also see our article on:


C# Program to Print Triangles

C# Program to Print Triangles

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:
 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();
}




information C# Program to Print Triangles has been completed in the discussion

hopefully the information C# Program to Print Triangles can provide benefits for you in providing information about the latest gadgets from various brands,

you just read the article about C# Program to Print Triangles if you intend to bookmark or share this information can use link https://laladarwis.blogspot.com/2013/12/c-program-to-print-triangles.html thank you and do not forget to get back other information

Tag : , , ,
Share on Facebook
Share on Twitter
Share on Google+

Related : C# Program to Print Triangles

  • A cool application of the delay function in c++The delay function can be used very creativelythis is one of them. In this post ill show u how to print a sentence with a delay after every letter!!there is a sligh ...
  • C# Simple Loop Program example to print charactersSimple Loop Problem to Print A B D H PProblem Statement:Write a program using for loop which prints the following output. (You have to find a pattern to print alphabetic ...
  • How to change IP addressPeople want to change  IP address for a variety of reasons. The Internet Protocol (IP) address is popularly known as the IP address. This private address is used by ...
  • C# Program to check number is prime or composite C# Program to check entered number is prime or composite Program Statement:Write a program that takes an integer as an input from user and prints if it is a prime o ...
  • Professional C# 2008 Professional C# 2008 If we were to describe the C# language and its associated environment, the .NET Framework, as the most important new technology for developers ...

0 komentar:

Post a Comment