Answers for "Printing pattern in c#"

C#
0

Printing pattern in c#

using System.IO;
using System;
class Program {
   static void Main() {
      for (int i = 1; i <= 6; ++i) {
         for (int j = 1; j <= i; ++j) {
            Console.Write("*");
         }
         Console.WriteLine();
      }
   }
}
Posted by: Guest on May-04-2021

C# Answers by Framework

Browse Popular Code Answers by Language