Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- main(){
- float notas[5], soma = 0;
- for(int i = 0; i < 5; i++){
- printf("Digite a %da nota do aluno: ", i + 1);
- scanf("%f", ¬as[i]);
- soma += notas[i];
- }
- system("cls");
- printf("Media do aluno: %.2f\n", soma / 5);
- for(int i = 0; i < 5; i++) printf("%da Nota: %.2f\n", i + 1, notas[i]);
- printf("Soma das notas: %.2f\n", soma);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment