开发者

code for subtracting 1 from a digit stored in an array using c

开发者 https://www.devze.com 2022-12-10 07:51 出处:网络
can any one help me with code开发者_如何转开发 that subtract 1 from a digit stored in an array using c++ (elementary mathematics)

can any one help me with code开发者_如何转开发 that subtract 1 from a digit stored in an array using c++ (elementary mathematics) eg.. 100-1=99 and 98-1=97


If you have stored the digits in an array, you'll need to follow your elementary-school math on the array from right to left. "Borrow" from the next place to the left as needed.

0

精彩评论

暂无评论...
验证码 换一张
取 消