[c++]代码库
#include<iostream>
using namespace std;
int main()
{
int i=1;
int day=5;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
cout<<"九月"<<day<<"日,";
cout<<"小明存入"<<i<<"枚硬币。"<<endl;
day=day+1;
i=i+1;
return 0;
}
[代码运行效果截图]