User: One Pea

  • Public profile

User profile: One Pea

User info
User name:One Pea
Old user name:Shezshade
History
Joined:
Number of posts:49
Latest posts:

Finding the Sum of Digits Recursively
Thank you, and I wrote write after the initial post the other changes I made.

Finding the Sum of Digits Recursively
No it does, it comes out as 1. [code] #include <iostream> using namespace std; int sumDigits (int...

Finding the Sum of Digits Recursively
I removed the "-1" from the return call "sumDigits(x-1)+counter", and it worked. Though I am confuse...

Finding the Sum of Digits Recursively
"return x == 0 ? 0 : " What does this mean?

Finding the Sum of Digits Recursively
I modified the code to this, but still experience the same issue. [code] #include <iostream> usin...

This user does not accept Private Messages