#include<stdio.h>
main()
{
int n;
float rate,cap,dep;
dep=0;
printf("input the rate:");
scanf("%f",&rate);
printf("input the n:");
scanf("%d",&n);
printf("input the cap:");
scanf("%f",&cap);
dep=cap+cap*n*rate/100;
printf("T he dep is %f\n",dep);
return 0;
}
结果图片: