mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
15 lines
225 B
C++
15 lines
225 B
C++
|
#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;
|
||
|
}
|