int main()
{
	float h = 100;
	int i;
	float s = 100;

	for (i = 2; i <= 10; i++)
	{
		h = h / 2;
		s = s + 2 * h;
	}
	printf_s("小球经过的总路程%f\n", s);
	printf_s("小球第十次弹起的高度%f\n", h / 2);

	return 0;
}