C# Program to Print different Shapes | Triangle | half triangle - is the information you are looking for, and in the blog
Google News we have provided her, all right in this article titled C# Program to Print different Shapes | Triangle | half triangle we will discuss it in full, in addition to the information we have also provided a lot of info about the latest gadgets and a wide range of tips and tricks that according to the gadget you are using, well please continue reading:
Penyanyi :
C# Program to Print different Shapes | Triangle | half triangle
Judul lagu :
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