HDU 1064 Financial Management

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1064

解题报告:用来凑个题数吧,看题的时间比过题的时间多的多,就是输入12个浮点数,然后输出平均数,只是前面加个美元符号就行了,另外保留两位小数,快去水吧。

1 main()
2 {
3     double i = 1,x,tot = 0;
4     for(i = 1;i <= 12;++i)
5     scanf("%lf",&x),tot += x;
6     printf("$%.2lf
",tot / 12);
7 }
View Code
原文地址:https://www.cnblogs.com/xiaxiaosheng/p/3940704.html