Guest User

Untitled

a guest
May 12th, 2016
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. class Array
  7. {
  8. static void Main(string[] args)
  9. {
  10. int sideLength = int.Parse(Console.ReadLine());
  11. Console.WriteLine(new string('*', sideLength));
  12. for (int i = 0; i < sideLength - 2; ++i)
  13. {
  14. Console.Write("*");
  15. for (int j = 0; j < sideLength - 2; ++j)
  16. {
  17. Console.Write(" ");
  18. }
  19. Console.Write("*");
  20. Console.WriteLine();
  21. }
  22. Console.WriteLine(new string('*', sideLength));
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment