C 练习实例18
题目:求s=a+aa+aaa+aaaa+aa...a的值,其中a是一个数字。例如2+22+222+2222+22222(此时共有5个数相加),几个数相加有键盘控制。
程序分析:关键是计算出每一项的值。文章源自公式库网-https://www.gongshiku.com/html/202112/c-lianxishili18.html
实例
以上实例输出结果为:文章源自公式库网-https://www.gongshiku.com/html/202112/c-lianxishili18.html
运营不易,
感谢支持!

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

我的公众号