Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float n,c,p;
- c = p = 0;
- printf("Digite uma nota: ");
- scanf("%f",&n);
- while (n>=10 && n<=20){
- c++;
- p+=n;
- printf("A média até o momento é: %f. \n", p/c);
- printf("Digite uma nova nota: ");
- scanf("%f",&n);
- }
- printf("A média geral é %f", p/c);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement