4
I wanted to display the student grade when all the notes were typed, in an array of 10 positions, I tried out for, but it returns me only the last.
#include <stdio.h>
#include <stdlib.h>
int main()
{
int notas[10];
int i;
for(i=0; i<10; i++) {
printf("Digite a nota do aluno: %d\n", i);
scanf("%d", ¬as[i]);
printf("A nota do aluno %d e: %d\n", i, notas[i]);
//Ele exibe assim que digito a nota do aluno
}
system("pause");
return 0;
}
@user25141 Another example? to calculate the average, one way is to use the harmonic mean. Here have an example.
– stderr
Vlw, I’ll test it here...
– user25141