package nan; import java.util.Scanner; public class Nan { /** * @param args */ public static void main(String[] args){ float s=100; float h=s/2; for(int n=2;n<=10;n++){ s=s+s*h; h=h/2; } System.out.println("共经过"+s+"米"); System.out.println("第十次反弹"+h+"米"); } }