Generation

generate functionFri, 09 Jun 2023

Crear un aray de tamaño

int[,] CreateArray(int size) { Random random = new Random(); int[,] array = new int[size, size]; // Fill the array for (int x = 0; x < size; x++) { for (int y = 0; y < size; y++) { array[x, y] = random.Next(10); } } return array; }

Want to kickstart your project?Use the new AI Studio to create your code