all about smartphone technologies we discuss here, ranging from specifications and prices, how to fix hp and we provide a lot of applications and games

C# Program to Print different Shapes | Triangle | half triangle

C# Program to Print different Shapes | Triangle | half triangle - welcome to our blog that presents a very complete information is Tech Phone ok now we will discuss the information you are seeking, may I guess if you are looking for information on C# Program to Print different Shapes | Triangle | half triangle if properly come please continue reading until the end, we also provide other information, do not forget to get around:

informations : 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();
}




Articles C# Program to Print different Shapes | Triangle | half triangle already been discussed

A few information about the C# Program to Print different Shapes | Triangle | half triangle, hopefully can provide benefits to all of you.

You're reading an article C# Program to Print different Shapes | Triangle | half triangle and this article has a link to https://mastispotgroup.blogspot.com/2013/12/c-program-to-print-different-shapes.html to revel book mark. Hopefully this article could be useful, do not forget to look for information on obtaining the phone tech blog.

Tag : , ,
Share on Facebook
Share on Twitter
Share on Google+
Tags :

Related : C# Program to Print different Shapes | Triangle | half triangle

0 komentar:

Posting Komentar