帮小弟改改
#includ<stdio.h>#include<math.h>
int main(viod)
{
int day;
double factor,initial,result;
printf("Enter inital:");
scanf("%If",&initial);
printf("Enter factor:");
scanf("%If",&factor);
printf("Enter day:");
scanf("%d",&day);
result=initial*pow(1+factor,day);
printf("result=%.2f\n",result);
return 0;
}