'commit'
This commit is contained in:
18
C++课程/第七课顺序结构程序设计/p56_2.cpp
Normal file
18
C++课程/第七课顺序结构程序设计/p56_2.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include<iostream>
|
||||
#include<cstdio>
|
||||
#include<cmath>
|
||||
|
||||
using namespace std;
|
||||
double r,x,p;
|
||||
//<2F><><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>1 100 5
|
||||
//<2F><><EFBFBD><EFBFBD> 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user