Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleApp1
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int n = int.Parse(Console.ReadLine());
  10. int counter = n - 1;
  11.  
  12. for (int i = 0; i < n; i++)
  13. {
  14. for (int j = 0; j < n; j++)
  15. {
  16. Console.Write(counter);
  17. }
  18.  
  19. counter += 2;
  20. Console.WriteLine();
  21. }
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement