Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
@Ting-Hui, I don't know C#, but I do know C/C++. From that perspective I see 2 problems. It doesn't look like your properly converting the digit from a character to an integer. Try doing something like this,
sumEveryCacula += (nToString[i] - '0') * divisions[b]
. Also you're skipping the left-most digit. Change the loop condition fromi > 0
toi >= 0
.As usual, you have an infinite loop.
Well, just read here :)
This comment is hidden because it contains spoiler information about the solution
I dont see where you check max to be even.
UPD. oh my mistake. didnt count for int.
Hi
@Ting-Hui
,yes, in this case the program would fail, but this code don't put
\n
before any number is printed out.