Xpode.com        Click here to Print this article.

Half Triangle (II) in C#

static void Main(string[] args)
{
    for (int i = 5; i >= 0; i--)
    {
       for (int j = 5; j >= i; j--)
       {
          Console.Write(" " + j);
        }
     Console.Write("\n");
     }
     Console.ReadLine();
}

Output:





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=395

Click here to go on website