I have stored my online judge solutions of my own :)
#include<stdio.h> int main() { long long t,i; scanf("%lld",&t); double a[t],sum=0; for(i=0; i<t; i++){ scanf("%lf",&a[i]); sum+=a[i]; } printf("%lf\n",sum/t); return 0; }
No comments:
Post a Comment