C# Program to Print different Shapes | Triangle | half triangle - technology is getting more advanced every day .. if you want to know the progress that happened please visit this blog
Technology News because it will always update the latest information, now we will discuss first about C# Program to Print different Shapes | Triangle | half triangle hopefully this information can answer the questions you submit to google, ok 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 comments:
Post a Comment