C# Program to Print different Shapes | Triangle | half triangle - I made this blog
Gadget Miracles already a few years ago, although I am busy working in my office still build this blog for you who need information about gadgets, has very much information that we provide about the C# Program to Print different Shapes | Triangle | half triangle which you are looking for at this time, please refer to the information we provide in full guarantee because I have collected a lot of information from the source of the richest:
Articles :
C# Program to Print different Shapes | Triangle | half triangle
full Link :
C# Program to Print different Shapes | Triangle | half triangle
Article Csharp,
Article programs,
You can also see our article on:
C# Program to Print different Shapes | Triangle | half triangle
C# Program to Print different 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 <= 10; i=i+2)
{
for (int j = 0; j <= i; j++)
{
Console.Write("*");
}
Console.WriteLine();
}
Console.ReadLine();
}
0 komentar:
Posting Komentar