Technology News, Micromax, Mobiles Flashing Software, Flash Tool, Pokemon GO Apk, Income Online, Moto G4 Plus, Sony PC, Latest Version, samsung note, Huawei Smartphone

Tuesday, December 24, 2013

C# Program to Print shapes diamond | half diamond

C# Program to Print shapes diamond | half diamond - technology is getting more advanced every day .. if you want to know the progress that happened please visit this blog Technology News because it will always update the latest information, now we will discuss first about C# Program to Print shapes diamond | half diamond hopefully this information can answer the questions you submit to google, ok please see:

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




information about C# Program to Print shapes diamond | half diamond has been completed in the discussion

hopefully information C# Program to Print shapes diamond | half diamond can benefit you in getting the latest information about technology,

you just read the article entitled C# Program to Print shapes diamond | half diamond if the article feel useful for you please bookmark or share by using link https://micromyaw.blogspot.com/2013/12/c-program-to-print-shapes-diamond-half.html and thank you.

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

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

0 comments:

Post a Comment