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