Guest User

Untitled

a guest
Sep 5th, 2016
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. using System;
  2.  
  3. class Program
  4. {
  5. static void Main()
  6. {
  7. int n = int.Parse(Console.ReadLine());
  8. Console.WriteLine("{0}",new string('*',n));
  9. for (int i = 0; i < n-2; i++)
  10. {
  11. Console.WriteLine("*{0}*",new string(' ',n-2));
  12. }
  13. Console.WriteLine("{0}", new string('*', n));
  14.  
  15. }
  16. }
Add Comment
Please, Sign In to add comment