• Top Posts

    How to print a right angle triangle patron in C#


    • This program prints the patron in the shape of Right Angle Triangle.


         public static void Main()  
         {  
           int no = 5;  
           for (int i = 1; i <= 5; i++)  
           {  
             for (int j = 1; j <= i; j++)  
             {  
               Console.Write(i);  
             }  
             Console.WriteLine();  
           }  
           Console.ReadKey();  
         }  
    

    No comments

    Post Top Ad

    ad728

    Post Bottom Ad

    ad728