C# Program to Print different Shapes | Triangle | half triangle - are you surfing on google and finding this blog
Techno Specs Gadget ?.. if yes, congratulations you will get updated information about C# Program to Print different Shapes | Triangle | half triangle we have collected a lot of information from various reliable sources to make this article, so make sure you read through to finish, please see.
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