标签:
简单题
1 #include <iostream> 2 #include <stdio.h> 3 #include <string.h> 4 #include <stack> 5 using namespace std; 6 7 int main() 8 { 9 double salary[12]; 10 double sum = 0; 11 for (int i = 0; i < 12; ++i) { 12 cin >> salary[i]; 13 sum += salary[i]; 14 } 15 cout << "$" << sum/12 << endl; 16 return 0; 17 }
标签:
原文地址:http://www.cnblogs.com/yingzhongwen/p/4220753.html