Posts by Marcelo Andrade • 36 points
1 post
-
2
votes1
answer89
viewsA: Why don’t you get in the loop?
The problem is using the same variable cont2 in both loops. for(cont2; cont2 < MAX_NOTAS;cont2++){ printf("Informe a nota %d:", cont2+1); scanf("%d", &(aluno1+cont)->notas[cont2]); soma +=…