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;
- namespace SquareOfStars
- {
- class Program
- {
- static void Main(string[] args)
- {
- var a = int.Parse(Console.ReadLine());
- Console.Write(new string('*', a));
- Console.WriteLine();
- for (int i = 0; i < a - 2; i++)
- {
- Console.WriteLine("*{0}*", new string(' ', a - 2));
- }
- for (int i = 0; i < a; i++)
- {
- Console.Write("*");
- }
- Console.WriteLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment