Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- class Array
- {
- static void Main(string[] args)
- {
- int sideLength = int.Parse(Console.ReadLine());
- Console.WriteLine(new string('*', sideLength));
- for (int i = 0; i < sideLength - 2; ++i)
- {
- Console.Write("*");
- for (int j = 0; j < sideLength - 2; ++j)
- {
- Console.Write(" ");
- }
- Console.Write("*");
- Console.WriteLine();
- }
- Console.WriteLine(new string('*', sideLength));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment