⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1064 financial management.cpp

📁 威士忌的HDU题解.大概有260多题的源码。对于学习非常有好处。
💻 CPP
字号:
/*
1064 Financial Management
Time Limit : 200 ms  Memory Limit : 32768 K  Output Limit : 1024 K

GUN C++
*/
#include <iostream.h>
using namespace std;

const int MAX=1000;

int main()
{
    double total,month;
    cout.setf(ios::fixed);
    cout.precision(2);
    while(cin>>total)
    {
        for(int ca=1;ca<12;ca++)
        {
            cin>>month;
            total+=month;
        }
        cout<<'$'<<total/12<<endl;
    }
    return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -