mirror of
				https://github.com/ASDjonok/OOP_IO-2x_2023.git
				synced 2025-11-04 08:39:24 +02:00 
			
		
		
		
	Delete Lab2 directory
This commit is contained in:
		
							parent
							
								
									5f4e295f72
								
							
						
					
					
						commit
						5e1040d05b
					
				@ -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;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user