Advertisement
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 СSLight13
- {
- class Program
- {
- static void Main(string[] args)
- {
- int d = 0;
- int e = 1;
- int[,] array = new int[3, 3];
- Random random = new Random();
- for (int i = 0; i < array.GetLength(0); i++)
- {
- for (int j = 0; j < array.GetLength(1); j++)
- {
- array[i, j] = random.Next(0, 10);
- Console.Write(array[i, j] + " ");
- }
- Console.WriteLine();
- d = d + array[0, i];
- }
- for (int j = 0; j < array.GetLength(1); j++)
- {
- e = e * array[j, 0];
- }
- Console.WriteLine("Сумма первой строки = " + d);
- Console.WriteLine("Произведение второго столбца = " + e);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement