All In One
একের ভিতর সব
Thursday, June 23, 2016
SOLUTION OF URI 1154
// 1154 (Mahmud_Jamil) BRUR
// Ages
#include <stdio.h>
int main()
{
int a,b=0;
double c,d=0;
while(1)
{
scanf("%d", &a);
if(a<0)
break;
else
{
b+=a;
d++;
}
}
c=b/d;
printf("%.2lf\n",c);
return 0;
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment