double [] a=new double[5];
a[0] = 10;
double jg=10;
for (int i=0;i<5 ;i++ )
{
a[i] = jg;
jg = a[i] * 0.8;
}
Console.WriteLine("结果为{0}",a[4]);
时间: 2024-10-11 07:25:16
double [] a=new double[5];
a[0] = 10;
double jg=10;
for (int i=0;i<5 ;i++ )
{
a[i] = jg;
jg = a[i] * 0.8;
}
Console.WriteLine("结果为{0}",a[4]);