Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- double j,ava,num;
- int i,n;
- j=0;
- scanf("%d",&n);
- for(i=0;i<n;i++)
- {
- scanf("%lf",&num);
- {
- if(num<=100)
- {
- j=j+num;
- }
- else
- {
- printf("");
- }
- }
- }
- ava=j/n;
- printf("%.2lf",ava);
- return 0;
- }
Add Comment
Please, Sign In to add comment