POJ 1004
题意
求平均值
思路
水题
#include <iostream>
#include <iomanip>
using namespace std;
int month = 12;
double balance,average,total;
int main (){
for(month = 0;month < 12;month++){
cin >> balance ;
total += balance;
}
average = total/month;
printf("$%.2f \n", average);
}