hi! im a newbie and i want to learn more on C i have a problem and i have no idea on how to add a 5 digit number example: input is 12345 and the output of 12345 is 15. please help on this one.
salvador01
0
Newbie Poster
Recommended Answers
Jump to PostWould it help you to know that subtracting '0' from '1' though '9' gives you the integer value of that character?
'1' - '0' = 1
'2' - '0' = 2
etc.
All 3 Replies
jonsca
1,059
Quantitative Phrenologist
Team Colleague
Featured Poster
Adak
419
Nearly a Posting Virtuoso
prvnkmr194
0
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.