#include <stdio.h>
#include <stdlib.h>
//início
main(){
int contagem;
float val, soma, media;
soma = 0;
media = 1;
contagem = 1;
while (contagem <=5){
printf ("\nDigite um número",contagem);
scanf ("%f", &val);
soma = soma + val;
media = soma/5;
contagem= contagem + 1;
}
printf("\nO resultado da soma é: %.2f",soma);
printf("\nA média é igual a: %.2f",media);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: