All Type Coding

Search Here

How to print left triangle in c#.?

using System;
class Program
{
    static void Main(string[] args)
    {
        int i, j;
        for (i = 0; i < 10; i++)
        {
            for (j = 0; j < i; j++)
                Console.Write("*");
            Console.WriteLine();
        }
        Console.ReadKey();

    }

}

Output

1 comment :

  1. impressive blog , keep post and if you are intresting in software developer, java developer then check out java course in satara

    ReplyDelete