#include<stdio.h>
#include<math.h>int main()
{ int day; double total=1.0f; printf("每天0.2倍,请输入天数:"); scanf("%d",&day); total=total*pow(1.2,day); printf("\n每天0.2倍,连续%d,总共会受益:%lf倍",day,total);}本文共 250 字,大约阅读时间需要 1 分钟。
#include<stdio.h>
#include<math.h>int main()
{ int day; double total=1.0f; printf("每天0.2倍,请输入天数:"); scanf("%d",&day); total=total*pow(1.2,day); printf("\n每天0.2倍,连续%d,总共会受益:%lf倍",day,total);}转载于:https://www.cnblogs.com/6daomeipengyou/p/5264570.html