★ A ball from 100 meters high free fall, each landing after the back to the original height of half, then fall, and then rebound. Seeking the first
10 times when the landing, the total number of meters, the 10th time rebound how high.
#include <stdio.h> #include <stdlib.h>int main () {double h = 100.0,sum = 100.0;int i = 0;for (i = 1; i <=; i + +) {h = h/2;sum = Sum + H * 2; The distance the ball has traveled contains the bouncing
}printf ("Sum" =%lf\th (Ten) =%lf\n ", sum,h); System (" pause "); return 0;}
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/74/C3/wKioL1YoqVKi_6iqAACwUKN23sk321.jpg "title=" Run Result " alt= "Wkiol1yoqvki_6iqaacwukn23sk321.jpg"/>
This article is from the "Warm Smile" blog, please be sure to keep this source http://10738469.blog.51cto.com/10728469/1705301
A ball from 100 meters high free falling bounce height