POJ 1004 Financial Management 巨水
摘要:
求平均数,巨水题#include <iostream>#include <iomanip>using namespace std;int main(void){ float a, sum = 0.0; for(int i = 0; i < 12; i++) { cin >> a; sum +=a; } cout << "$" << sum/12 << setprecision(2) << setiosflags(ios::fixed) << endl; return 0;} 阅读全文
posted @ 2012-05-25 11:45 澄哥 阅读(136) 评论(0) 推荐(0) 编辑