Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int nota=0,media,x=0,y=0;
- printf("Qual nota ?");
- scanf("%d", ¬a);
- while(nota < 10 && nota > 0)
- {
- x=x+nota;
- y=y+1;
- scanf("%d",¬a);
- }
- media=x/y;
- printf("media: %d", media);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement