dvumerni masivi.cs - using System using System.Linq namespace dvumerni_masivi class Program static void Main(string args\/zadacha1 int rows =

dvumerni masivi.cs - using System using System.Linq...

This preview shows page 1 - 3 out of 3 pages.

using System; using System.Linq; namespace dvumerni_masivi { class Program { static void Main(string[] args) { //zadacha1 /* int rows = int.Parse(Console.ReadLine()); int cols = int.Parse(Console.ReadLine()); int[,] matrix = new int[rows,cols]; for (int i = 0; i < rows; i++) { for (int n = 0; n < cols; n++) { Console.Write("matrix[{0}, {1}]", i, n); matrix[i, n] = int.Parse(Console.ReadLine()); } } for (int row = 0; row < rows; row++) { double avg = 0; for (int col = 0; col < cols; col++) { Console.Write("{0, 8}", matrix[row, col]); avg += matrix[row, col]; } Console.WriteLine(); }*/ //zadacha2 /* int rows = int.Parse(Console.ReadLine()); int cols = int.Parse(Console.ReadLine()); int[,] matrix = new int[rows, cols]; for (int row = 0; row < rows; row++) { for (int col = 0; col < cols; col++) { Console.Write("matrix[{0},{1}] = ", row, col); matrix[row, col] = int.Parse(Console.ReadLine()); } } for (int i = 0; i < cols; i++) { ; for (int n = 0; n < rows; n++) { int[] min = new int[cols]; } }*/ //zadacha3
Image of page 1
/* var line = Console.ReadLine().Split('
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 3 pages?

  • Spring '18
  • new int, Row, int rows

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes