Why you are dividing numbers by 10 and 100??
My querry
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Fa Yu
27 May 2019, 05:25
by dividing by 10 and 100 you are cutting your 3-digit number's integer part to 2- and 1- digit number correspondingly
0
Alexey Rinchino
24 May 2019, 14:10
Hello.
It is because I need to count hundreds, tens and ones in given number.
Another way to solve this problem is to split string to three singlechar string, parse them and sum them.
0