cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
For Loops
For Loops
Oct 27, 2014 at 8:13pm UTC
adam43
(2)
Write your question here.
I am wondering how i can take a phone number such as 9032389960 and add all the numbers together and output it using for loops. I need to convert each number into a char and then convert it into an int.
Oct 27, 2014 at 9:46pm UTC
Darkmaster
(564)
http://www.cplusplus.com/reference/cstdlib/itoa/
http://www.cplusplus.com/reference/cstdlib/atoi/
Topic archived. No new replies allowed.