You are on page 1of 1

using System; class Program { static void Main() { Random r = new Random(); int aleatorio2 = r.

Next(4, 10); int aleatorio1 = r.Next(1, aleatorio2/2); int[][] tab = new int[7][]; for(int i =0; i<7; i++) { if (i==0 || i==3 || i==6) { tab[i] = new int[aleatorio2]; } else { tab[i] = new int[aleatorio1]; } } for (int i = 0; i < 7; i++) for (int j = 0; j < tab[i].Length; j++) { tab[i][j] = 0; } for (int i = 0; i < 7; i++) { for (int j = 0; j < tab[i].Length; j++) { Console.Write(tab[i][j]); } Console.WriteLine(); } Console.ReadKey(); } }

You might also like