Comrades good night, I would like your help to be able to obtain the sum of the result of all the variances stored in all the numbers of activities that are carried out, this is my code.
float [] numbers = new float [10]; System.out.println ("Number of Activities"); int n = lector.nextInt (); for (int i = 0; i
System.out.println("Tiempo optimista: ");
a=lector.nextFloat();
System.out.println("Tiempo mas probable: ");
b=lector.nextFloat();
System.out.println("Tiempo pesimista: ");
c=lector.nextFloat();
prom = (a+4*b+c)/6;
System.out.println("El tiempo probable es: " + prom);
var = ((c-a)/6)*2;
System.out.println("La varianza es de: " + var);