Ejercicio 5.1 PDF Practice Program
Document Details
Uploaded by CostEffectiveRationality3754
ILERNA
Tags
Summary
This document shows a C# program that creates a 2x3 matrix and populates it with random integer values in the range 0 to 99.
Full Transcript
```C# using System; namespace M03_VT07_Práctica { class Program { static void Main() { int[,] matriz = new int[2, 3]; Random aleatorio = new Random(); for (int i = 0; i < matriz.GetLength(0); i++) { for (int j...
```C# using System; namespace M03_VT07_Práctica { class Program { static void Main() { int[,] matriz = new int[2, 3]; Random aleatorio = new Random(); for (int i = 0; i < matriz.GetLength(0); i++) { for (int j = 0; j < matriz.GetLength(1); j++) { matriz[i, j] = aleatorio.Next(100); Console.Write(matriz[i, j] + "\t"); } Console.WriteLine(); } } } } ```