I want to make an array that takes a number and makes a "n length" array with random number. I do not really know if i need to make a random number generator for it or no the variable type must be string or it does not matter if we wanna a make an array with numbers
using System;
namespace arrays
{
class arrays
{
static void Main(string[] args)
{
Console.WriteLine("Add A Number: ");
int n = Convert.ToInt32(Console.Read());
Console.ReadLine(n);
string[] random = new string[n];
}
}
}
this is the basics I know that I need to use for it
Aucun commentaire:
Enregistrer un commentaire