OJ-Problems-Source/HDOJ/1064_autoAC.cpp

15 lines
225 B
C++
Raw Normal View History

2016-08-12 10:16:11 +08:00
#include<stdio.h>
int main()
{
double avg,cache;
int i;
avg=cache=0;
for(i=0;i<12;i++)
{
scanf("%lf",&cache);
avg+=cache;
}
printf("$%.2lf\n",avg/12);
return 0;
}