I'm a beginner, and I'm taking a long time to figure this out. I want to be able to add and find the average of the array the user has created.
I have added the code I have written so far, and I don´t know if there's some easy way to do it or to add a for? Have no clue and was hoping I could get some pointers.
Thanks in advance
Console.WriteLine("how many numbers do you want to store?:");//Preguntar
int count = int.Parse(Console.ReadLine());//capturar tamaño
// Crear vector con tamaño que se ha asignado
string[] numeros = new string[count];
// Llenarlo
for (int i = 0; i < count; i++)
{
Console.Write("Numero {0}: ", i);
numeros[i] = Console.ReadLine();
}
// Imprimirlo
Console.WriteLine("\nvalues in vector:\n");
for (int i = 0; i < count; i++)
{
Console.WriteLine("Posicion {0}: {1}", i, numeros[i]);
}