#include<stdio.h>#include<stdlib.h>intmain(){float high =100.0;float sum =0.0;for(int i =0; i <10; i++){
high = high /2;
sum += high;}printf("第十次落地后共经过%f米\n", sum);printf("第十次落地后反弹%f米\n", high);system("pause");return0;}
源代码#include<stdio.h>#include<stdlib.h>int main(){ float high = 100.0; float sum = 0.0; for (int i = 0; i < 10; i++) { high = high / 2; sum += high; } printf("第十次落地后共经过%f米...