From 5e1040d05baeb8aec0a04853e01dbb21374c6e65 Mon Sep 17 00:00:00 2001 From: Maxim Papko <125305022+idkWhatUserNameToUse@users.noreply.github.com> Date: Thu, 18 May 2023 11:18:18 +0300 Subject: [PATCH] Delete Lab2 directory --- Lab2/Program.cs | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 Lab2/Program.cs diff --git a/Lab2/Program.cs b/Lab2/Program.cs deleted file mode 100644 index 534e19d..0000000 --- a/Lab2/Program.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; - -public class Laba2 -{ - - - public static void Main(string[] args) - { - const int a = 2; - int[][] b = new[] - { - new int[] { 1, 2, 8 }, - new int[] { 3, 4, 5 }, - new int[] { 6, 7, 9 } - }; - calculation(b, a); - } - - private static int[][] calculation(int[][] b, int a) - { - int[][]c = new int[b.Length][b[0].Length]; //недопустимий специфікатор рангу: вимагається "," або "]"; - for (int i = 0; i < b.Length; i++) - { - c[i] = new int[b[i].Length]; - for (int j = 0; j < b[i].Length; j++) - { - c[i][j] = b[i][j] * a; - } - } - return c; - } -} \ No newline at end of file