#include "iostream"
//输入12个数,然后求其平均数!
#include "cstdio"
using namespace std;
int main()
{
double num, ans, sum = 0;
for (int i = 0; i < 12; i++)
{
cin >> num;
sum += num;
}
ans = sum / 12;
printf("$%.2f\n", ans);
}
11-14
#include "iostream"
//输入12个数,然后求其平均数!
#include "cstdio"
using namespace std;
int main()
{
double num, ans, sum = 0;
for (int i = 0; i < 12; i++)
{
cin >> num;
sum += num;
}
ans = sum / 12;
printf("$%.2f\n", ans);
}