Spocoman

02. Rectangle of N x N Stars

Nov 23rd, 2021 (edited)
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.42 KB | None | 0 0
  1. using System;
  2.  
  3. namespace RectangleOfNxNStars
  4.  
  5. {
  6.     class Program
  7.     {
  8.         static void Main()
  9.         {
  10.             int side = int.Parse(Console.ReadLine());
  11.  
  12.             for (int i = 0; i < side; i++)
  13.             {
  14.                 for (int j = 0; j < side; j++)
  15.                 {
  16.                     Console.Write('*');
  17.                 }
  18.                 Console.WriteLine();
  19.             }
  20.         }
  21.     }
  22. }
Add Comment
Please, Sign In to add comment