C# Program to Print shapes diamond | half diamond - Did you know that every day there is always a new technology that is created? if you want to know please refer to the blog
Gadget News well now we will discuss first about C# Program to Print shapes diamond | half diamond as you need now, we have compiled this article carefully, so 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();}
article C# Program to Print shapes diamond | half diamond has been completed in the discussion
hopefully the information C# Program to Print shapes diamond | half diamond that we provide can be useful for you to know the development of technology in the present
articles C# Program to Print shapes diamond | half diamond we have conveyed to you, if feel this information is useful and you want to bookmark or share so that more people who know please use link https://profsmythe.blogspot.com/2013/12/c-program-to-print-shapes-diamond-half.html.
Tag :
Csharp,
programs,
0 comments:
Post a Comment