C 练习实例20 - 小球自由下落
题目:一球从100米高度自由落下,每次落地后反跳回原高度的一半;再落下,求它在第10次落地时,共经过多少米?第10次反弹多高?
程序分析:见下面注释。文章源自公式库网-https://www.gongshiku.com/html/202112/c-lianxishili20-xiaoqiuziyouxialuo.html
实例
以上实例输出结果为:文章源自公式库网-https://www.gongshiku.com/html/202112/c-lianxishili20-xiaoqiuziyouxialuo.html
运营不易,
感谢支持!

我的微信
我的微信公众号
我的微信公众号扫一扫

我的公众号