Write a program that reads an integer between 0 and 1000 and adds all the digits in the integer. For example, if an integer is 932, the sum of all its digits is 14. Use the int operators / and %.
2007-02-21
15:05:26
·
5 answers
·
asked by
camarodriver682005
2
in
Computers & Internet
➔ Programming & Design
Yeah see, me and a group of like 5 friends have been pooling our resources and the truth is out professor is totally over our heads. We have been working at this problem and are completely lost. Any suggestions?
2007-02-21
15:21:43 ·
update #1