Tecno Mobile Phones, Huawei, Firmware Flash File, Android Jelly Bean, Facebook Page, iPhone Apple, Symphony Firmware, Lava iris, samsung

C# Program to Print shapes diamond | half diamond

C# Program to Print shapes diamond | half diamond - technological developments continue to grow rapidly, old technologist replaced with the latest, on the blog Tecno Mobile Phones we will discuss various updated technology from various brands around the world, well now we will discuss first about C# Program to Print shapes diamond | half diamond we collect a lot data from various reliable sources to make this article, please read:

Articles : C# Program to Print shapes diamond | half diamond
full Link : C# Program to Print shapes diamond | half diamond
Article Csharp, Article programs,

You can also see our article on:


C# Program to Print shapes diamond | half diamond

C# Program to Print shapes

Program Statement:
Write a program using for loop which prints the following output on the screen.
*
**
***
****
***
**
*

Solution:
 static void Main(string[] args)
{
for (int i = 0; i <= 3; i++)
{
for (int j = 0; j <= i; j++)
{
Console.Write("*");
}
Console.WriteLine();

}
for (int i = 3; i >0; i--)
{
for (int j = 0; j <= i-1; j++)
{
Console.Write("*");
}
Console.WriteLine();

}
Console.ReadLine();}




just so much information about C# Program to Print shapes diamond | half diamond

hopefully C# Program to Print shapes diamond | half diamond information can provide benefits for you in adding insight about the latest gadget technology

you just read the article about C# Program to Print shapes diamond | half diamond and can you bookmark or share with link https://ghchjgv.blogspot.com/2013/12/c-program-to-print-shapes-diamond-half.html so thank you.

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

Related : C# Program to Print shapes diamond | half diamond

0 komentar:

Post a Comment