Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
float promedio = (float) sumatoria / cantidadDeElementos;
System.out.printf("La sumatoria es %d y el promedio es %f", sumatoria, promedio);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment