Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace NxNMatrix
- {
- class Program
- {
- static void Main()
- {
- int n = int.Parse(Console.ReadLine());
- PrintNxNMatrix(n);
- }
- public static void PrintNxNMatrix(int n)
- {
- for (int j = 1; j <= n; j++)
- {
- for (int i = 1; i <= n; i++)
- {
- Console.Write(n + " ");
- }
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment