Stephanie News, Dell USB Drivers, Android Devices, Charging, Apple, Nokia Flash File, Samsung Galaxy

Selasa, 24 Desember 2013

C# Program to Print shapes diamond | half diamond

C# Program to Print shapes diamond | half diamond - with the rapid development of today's technology we must enrich our knowledge of gadgets, because every day there are many new gadgets that are made with advantages, in blogs Stephanie News we will meriview many gadgets from various brands ranging from the specification and its price .. Now we will discuss first about C# Program to Print shapes diamond | half diamond please see our explanation 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();}




we feel the information C# Program to Print shapes diamond | half diamond that's all.

hopefully the information C# Program to Print shapes diamond | half diamond that we have conveyed can provide benefits for you and all visitors of this blog, if any criticism and suggestions please comment.

you just read C# Program to Print shapes diamond | half diamond if this article is considered useful and you want to bookmark and share it please use the link https://stephaniefulke.blogspot.com/2013/12/c-program-to-print-shapes-diamond-half.html and what if you want other information look for another page in this blog.

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

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

0 komentar:

Posting Komentar