New to C++, need a challenge.

Hello, I am very new to C++. I am learning through the latest C++ for dummies book. I have read a lot of the basics. I have not really got into stuff like arrays and that. I have done all the variable, function, math and class stuff however. I have done more then that thats just the main. So, I would like a basic challenge of something to code. Not to hard. Fairly easy. Mabey... 20-50 lines of code it would take a averages C++ user to code? Anyways, Thanks!
How about, a block of function where they ask you for a number.

Then using that number you extract the
1. First digit
2. Last digit
3. Lowest digit
4. Highest digit
5. And the sum of the whole digit.

For example:

you put in a number like 12568
1. "1"
2. "8"
3. "1"
4. "8"
5. " 22"

Sounds simple?
Thats an amazing idea! Thanks! If anyone has other still post.
Aha, you're welcome! (: Maybe you can help me with this array ;] Ahahaha
closed account (3TkL1hU5)
Great link, thanks MottMan!

Topic archived. No new replies allowed.