0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication3
{
    class Program
    {
        static void Main(string[] args)
        {
            Random elemento = new Random();
        }
    }
}
1
  • cual seria la matriz en el codigo que has publicado ? el 1 jun. 2016 a las 6:50

1 respuesta 1

1

podria ser algo como

class Program
{
    static void Main(string[] args)
    {
        int[,] numeros = new int[10,10];

        Console.WriteLine("Ingrese un valor");
        int valor = Convert.ToInt32()Console.ReadLine());

        Random elemento = new Random();

        int X = elemento.Next(0, 10);
        int Y = elemento.Next(0, 10);

        numeros[X][Y] = valor;

    }
}

Matrices (Guía de programación de C#)

Tu Respuesta

By clicking “Publica tu respuesta”, you agree to our terms of service and acknowledge you have read our privacy policy.

¿No es la respuesta que buscas? Examina otras preguntas con la etiqueta o formula tu propia pregunta.