C# Program to Print shapes diamond | half diamond - the world of technology is more advanced, we should be technically literate so as not left behind by others, in blogs
Republic Gadget we will present updated information about technological developments, product reviews from various brands, now we will discuss first about this information C# Program to Print shapes diamond | half diamond we cover directly from reliable sources, 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();}
so much information C# Program to Print shapes diamond | half diamond
hopefully the infromation that we show for you about C# Program to Print shapes diamond | half diamond can provide the latest knowledge about the gadgets you need in everyday life.
you've just read the article with the title C# Program to Print shapes diamond | half diamond if you intend to bookmark or share it for many people please use the link https://bhrepublicadominicana.blogspot.com/2013/12/c-program-to-print-shapes-diamond-half.html still a lot of information on this blog, please visit other pages.
Tag :
Csharp,
programs,
0 komentar:
Post a Comment