#include<stdio.h>
int main()
{
int n;
float rate=0.0225, capital, deposit;
scanf("%f%d",&capital,&n);
deposit=capital+capital*rate*n;
printf("%f\n",deposit);
return 0;
}
运行结果
知识
#include<stdio.h>
int main()
{
int n;
float rate=0.0225, capital, deposit;
scanf("%f%d",&capital,&n);
deposit=capital+capital*rate*n;
printf("%f\n",deposit);
return 0;
}
运行结果
知识