"C language programming 365 cases of classic" 018

IT / Internet job recruitment plan -AT Bao brother


Depth understanding of IT / Internet industry and jobs, please refer to the general IT / Internet job recruitment program (the latest full version of Kong) .
Depth understanding of career advancement and learning routes, see the optimal path for career advancement courses and study guides (the latest full-stack version) .


Content navigation :

  • 1, title
  • 2, analysis
  • 3, code implementation
  • 4, operating results

1, title

Seeking s = a + aa + aaa + aaaa + aa ... the value of a, where a is a number. E.g. 2 + 22 + 222 + 2222 + 22222 (in this case the sum total of the number 5), a control keyboard a few numbers together.


2, analysis

The key is to calculate the value of each item.


3, the sample code

/*
作者:AT阿宝哥
日期:2016年9月18日
愿景:参考官方资料,做最好的课程,成就更多职业人!
邮箱:[email protected]
CSDN:https://blog.csdn.net/goldentec
简书:https://www.jian

Guess you like

Origin blog.csdn.net/goldentec/article/details/105283208