编译错误?求助,玄关
查看原帖
编译错误?求助,玄关
1052960
tnts楼主2025/1/17 10:21
#include <iostream>
using namespace std;

int main() {
	int n;
	double x;
	cin >> x >> n;
	for (int i = 1; i <= n; i ++)                                                                        
		x += 0.001 * x;
	cout << fixed << setprecision(4) << x << endl;
	return 0;
}

2025/1/17 10:21
加载中...