摘要:
#include<iostream>#include <iomanip> using namespace std;int main(){int i=12;double sum,in,average;sum=0;for(int i=0;i<12;i++){cin>>in;sum+=in;}average=sum/12;cout<<"$";cout<<fixed<<setprecision(2)<<average<<endl;system("PAUSE"); 阅读全文
摘要:
cout<<fixed<<setprecision(2)<<average<<endl;fixed不能少 阅读全文