3 个赞
路过+114514
4 个赞
《不耻下问》
![]()
3 个赞
老师不会,同学怎么可能会?
3 个赞
addd
3 个赞
这简单啊
首先要知道本息公式(六年级学的:
本息=本金×(1+年利率)×存期
此题中,要求本息>大黄蜂售价
所以直接for循环套公式即可
可以用进行for循环的次数来表示公式中的存期
#include<bits/stdc++.h>
using namespace std;
#define price 50//大黄蜂售价
double x;//本金
int year;//存期
int main(){
cin>>x;//输入
for(year=0;x<price;year++) x*=1.1;//计算本息
cout<<year;//输出
return 0;
}
胡桃在线求解决方案
5 个赞
哇脑公来力(喜
4 个赞
咳咳
3 个赞
kkkk
3 个赞
???
3 个赞
缩写
3 个赞
111111
3 个赞
114514
3 个赞
1111
2 个赞
哇,各种水贴
3 个赞
addd
2 个赞


