#include <stdio.h>
void main() {
float s = 100.0, h = s / 2;
int n;
for (n = 2; n <= 10; n++) {
s = s + 2 * h;/*第n次落地时共经过的米数*/
h = h / 2; /*第n次反跳高度*/
}
printf("the total of road is %f meter\n", s);
printf("the tenth is %f meter\n", h);
}
フリーフォール:100メートルの高さから自由落下ボール、抗ジャンプバック各着地半後に元の高さ、ダウン再び、何メートルの合計後、10階にそれを見つけますか?10日には、背の高いリバウンド?
おすすめ
転載: blog.csdn.net/qq_38490457/article/details/104784803
おすすめ
ランキング