C# Program toward Print different Shapes
Program Statement:
Write a program using beneficial to loop which prints the following output at the screen.
*
***
*****
*******
*********
***********
Solution:
static void Main(string[] args)
{
beneficial to (int i = 0; i <= 10; i=i+2)
{
beneficial to (int j = 0; j <= i; j++)
{
Console.Write("*");
}
Console.WriteLine();
}
Console.ReadLine();
}