Star Triangle in C#
static void Main(string[] args)
{ for (int i = 0; i <= 5; i++)
{
for (int j =i; j>= 0; j--)
{
Console.Write(" *");
}
Console.Write("\n");
}
Console.ReadLine(); }
Output:
![](http://xpode.com//Downloads/Gallery/fullImage/6201151243486Triangle.JPG)
http://
http://
Contributed by:
Rohit kakria
I am software developer, moderator of xpode.com
Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=401
Click here to go on website
|