C# Program to Print shapes diamond | half diamond - we should be concerned about the technology that continues to grow, because the technology is created to facilitate our lives, with technology we can do any job faster so save time and money, ok on the blog
Techno News Latest we will discuss a variety of new technologies that continue to grow, now we will membahs first about C# Program to Print shapes diamond | half diamond 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();}
information C# Program to Print shapes diamond | half diamond has been discussed
hopefully the information we have provided with the title C# Program to Print shapes diamond | half diamond can provide more knowledge for you in determining the choice of gadget that suits your needs.
you just finished reading the article C# Program to Print shapes diamond | half diamond if you think this information is worth to book mark or share please use link https://puriagatsari.blogspot.com/2013/12/c-program-to-print-shapes-diamond-half.html to get more information about gadget please visit other pages on this blog, thank you.
Tag :
Csharp,
programs,
0 komentar:
Posting Komentar