Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 29, 2019 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/4d452ca1146ace26d4e15cb83bd2fe9e to your computer and use it in GitHub Desktop.
Save parzibyte/4d452ca1146ace26d4e15cb83bd2fe9e to your computer and use it in GitHub Desktop.
// El promedio es = sumatoria / cantidadDeElementos
double promedio = (float) sumatoria / (float) cantidadElementos;
printf("Sumatoria: %d\n", sumatoria);
printf("Promedio: %0.2f\n", promedio);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment