Files
python/C++课程/第七课顺序结构程序设计/p56_2.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

19 lines
299 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
double r,x,p;
//输入示例:1 100 5
//输出 105.10
int main() {
cin>>r>>x>>p;
double a=(100+r)/100;
printf("%.2lf\n",x*pow(a,p));
//printf("%d\n",pow(2,2));
//printf("%.2lf\n",pow(2,2));
return 0;
}