Advertisement
ARNABCHAKRABORTTY

Untitled

Dec 14th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {int i,b,c,n,k,sum=0;
  4. scanf("%d",&c);
  5. for(i=1;i<=c;i++)
  6. scanf("%d",&n);
  7.  
  8. for(b=0;b<n;b++)
  9. {scanf("%d",&k);
  10. sum=sum+k;}
  11. printf("case%d:%d\n",i,sum/n);
  12. sum=0;
  13. }
  14. return 0;
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement