public class exercise_719_07 {
public static void main(String[] args) {
double num=100;
double sum=100;
for (int i = 1; i <= 10; i++) {
num*=0.5;
sum+=num*2;
System.out.println(num);
}
System.out.printf(“第10次落地时,共经过%f米。”,sum);
System.out.printf(“第10次反弹%f米。”,num);
}
}