miroslavbstoyanov

Untitled

May 28th, 2017
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. var n = int.Parse(Console.ReadLine());
  2. Console.WriteLine(new string('*', n));
  3. for (int i = 0; i < n - 2; i++)
  4. {
  5. Console.WriteLine(new string('*', 1) + new string(' ', n - 2) + new string('*', 1));
  6. }
  7. Console.WriteLine(new string('*', n));
Advertisement
Add Comment
Please, Sign In to add comment