C# Program to Print different Shapes | Triangle | half triangle - competition between products makes technology that continues to grow quickly, in blogs
Techno Max we will discuss about speck new products from all brands of gadgets about hardware and soft ware are in use, now we will discuss first about C# Program to Print different Shapes | Triangle | half triangle we have collected lots of data to make this article, please see to finish:
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:
Post a Comment