fk4m1913

Untitled

Jun 17th, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. using System;
  2.  
  3. namespace NxNMatrix
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int N = int.Parse(Console.ReadLine());
  10.  
  11.             PrintMatrix(N);
  12.         }
  13.  
  14.         static void PrintMatrix(int N)
  15.         {
  16.             for (int i = 0; i < N; i++)
  17.             {
  18.                 for (int j = 0; j < N; j++)
  19.                 {
  20.                     Console.Write(N + " ");
  21.                 }
  22.                 Console.WriteLine("");
  23.             }
  24.         }
  25.     }
  26. }
Add Comment
Please, Sign In to add comment