C# Program to Print shapes diamond | half diamond - welcome to our blog that presents a very complete information is
Tech Phone ok now we will discuss the information you are seeking, may I guess if you are looking for information on C# Program to Print shapes diamond | half diamond if properly come please continue reading until the end, we also provide other information, do not forget to get around:
informations :
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();}
Articles C# Program to Print shapes diamond | half diamond already been discussed
A few information about the C# Program to Print shapes diamond | half diamond, hopefully can provide benefits to all of you.
You're reading an article
C# Program to Print shapes diamond | half diamond and this article has a link to
https://mastispotgroup.blogspot.com/2013/12/c-program-to-print-shapes-diamond-half.html to revel book mark. Hopefully this article
could be useful, do not forget to look for information on obtaining the phone tech blog.
Tag :
Csharp,
programs,
0 komentar:
Posting Komentar