#include<stdio.h>
#include<stdlib.h>
void main()
{
double x1 = 0.99, x2 = 0.98, x3 = 1.01, x4 = 1.02;
double y1 = 1, y2 = 1, y3 = 1, y4 = 1;
for (int i = 0; i < 365; i++) //365的计数器
{
y1 *= x1; //每乘一次,衰减一次
y2 *= x2;
y3 *= x3;
y4 *= x4;
}
printf("%f, %f, %f, %f", y1, y2, y3, y4);
}
量变引起质变,再多努力一点,大有不同