Advertisement
MZlatev

Untitled

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