#include<stdio.h>
#include<math.h>
int main()
{
int a=1000;
float p1,p2,p3,p4,p5;
printf("p=%.2f\n",p1=a*(1+5*0.0475));
printf("p=%.2f\n",p2=(a*(1+2*0.0375))*(1+3*0.0425));
printf("p=%.2f\n",p3=(a*(1+3*0.0425))*(1+2*0.0375));
printf("p=%.2f\n",p4=a*pow((1+0.03),5));
printf("p=%.2f\n",p5=a*pow((1+0.0036/4),20));
}
XYNUOJ-1032~1036
于 2023-12-30 18:54:13 首次发布