using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace csharp { class Program { static void Main(string[] args) { Console.WriteLine("Enter the number"); int n = Convert.ToInt32(Console.ReadLine()); for (int i = 1; i <= n; i++) { for (int j = 1; j <= n; j++) { Console.Write("*"); } Console.WriteLine(""); Console.ReadLine(); } } } }
static void Main(string[] args) { Console.WriteLine("Enter the number"); int n = Convert.ToInt32(Console.ReadLine()); for (int i = 1; i <= n; i++) { for (int j = 1; j < 4; j++) Console.Write("*"); Console.WriteLine(""); Console.ReadLine(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)