static void arreglo()
{
double[] a = new double[10];
double c=0;
int x;
Console.WriteLine(" SUMATORIA DE A");
for (x = 0; x < 10; x++)
{
Console.SetCursorPosition(1, x + 4);
a
- = double.Parse(Console.ReadLine());
c = c + a
}
Console.WriteLine("a");
{
Console.WriteLine("{0}", c);
}
}
static void Main(string[] args)
{
arreglo();
Console.ReadKey();
}
}
}
BYEEE