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 FillMatrix
- {
- class FillMatrix
- {
- static void Main()
- {
- int row = int.Parse(Console.ReadLine());
- int[][] matrix = new int[row][];
- for (int rows = 0; rows < row; rows++)
- {
- matrix[rows] = Console.ReadLine().Split().Select(int.Parse).ToArray();
- }
- foreach(int[] element in matrix)
- {
- Console.WriteLine(string.Join(" ",element));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment