Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace CSLight11
- {
- internal class Program
- {
- private static void Main(string[] args)
- {
- int[,] array = {
- {1,2,3},
- {4,5,6},
- {7,8,9},
- };
- for (int i = 0; i < array.GetLength(0); i++)
- {
- for (int j = 0; j < array.GetLength(1); j++)
- {
- Console.Write(array[i, j] + " ");
- }
- Console.WriteLine();
- }
- while (true)
- {
- Console.WriteLine("Сумма второй строки = " + (array[1, 0] + array[1, 1] + array[1, 2]));
- Console.WriteLine("Произведение первого столбца = " + (array[0, 1] * array[1, 1] * array[2, 1]));
- break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement