• Top Posts



     public static void Main(string[] args)  
         {  
           int i, j, k;  
           for (i = 1; i <= 7; i++)  
           {  
             for (j = 1; j <= i; ++j)  
               Console.Write(j);   
             for (k = 7 - i; k >= 1; k--)  
               Console.Write("*");  
             Console.Write("\n");  
           }  
           Console.ReadLine();  
         }  
    

    No comments

    Post Top Ad

    ad728

    Post Bottom Ad

    ad728