Techno Max, PSP emulator, Sony Xperia Specifications, Motorola, Latest Setup, Latest Stock Firmware Flash File, Samsung Note, Avengers Box SPD

C# Program to Print shapes diamond | half diamond

C# Program to Print shapes diamond | half diamond - competition between products makes technology that continues to grow quickly, in blogs Techno Max we will discuss about speck new products from all brands of gadgets about hardware and soft ware are in use, now we will discuss first about C# Program to Print shapes diamond | half diamond we have collected lots of data to make this article, please see to finish:

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




enough already information C# Program to Print shapes diamond | half diamond

hopefully this information C# Program to Print shapes diamond | half diamond can benefit you in seeking more knowledge about gadgets from all brands that exist today.

you have finished reading the article C# Program to Print shapes diamond | half diamond if you intend to book book mark or share to more people please use link https://fcomax.blogspot.com/2013/12/c-program-to-print-shapes-diamond-half.html and see other information in other page.

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