【杭电ACM】1.2.4 Financial Management
1 #include2 using namespace std; 3 4 int main(){ 5 double a[12]; 6 double count = 0; 7 for(int i = 0; i < 12; i ++){ 8 cin >> a[i]; 9 count += a[i];10 }11 cout << '$' << count / 12 <
本文共 341 字,大约阅读时间需要 1 分钟。
1 #include2 using namespace std; 3 4 int main(){ 5 double a[12]; 6 double count = 0; 7 for(int i = 0; i < 12; i ++){ 8 cin >> a[i]; 9 count += a[i];10 }11 cout << '$' << count / 12 <
转载于:https://www.cnblogs.com/pengzheng/archive/2013/04/16/3024613.html