#include <stdio.h>
int main(int argc, char **argv)
{
double f1 = 100.0, fn = 100.0, addRet = f1 + fn;
int n = 2;
for (n = 3; n <= 10; n++)
{
fn = fn / 2;
addRet += fn;
}
fn = fn / 4;
printf("After a total of %f meters and the 10th rebound height is %f meters.\n", addRet, fn);
return 0;
}
一球从100米高度自由落下,每次落地后反跳回原高度的一半;再落下,求它在第10次落地时,共经过多少米?第10次反弹多高?
最新推荐文章于 2022-10-20 20:55:17 发布