Advertisement
Guest User

Untitled

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