cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
how do i add 5 numbers automatically li
how do i add 5 numbers automatically like this?
Jul 24, 2018 at 8:41am UTC
misosoup41
(5)
like this
Enter you number: 55555
=25
Jul 24, 2018 at 8:47am UTC
Thomas1965
(4571)
double post
http://www.cplusplus.com/forum/beginner/240261/
Jul 24, 2018 at 8:51am UTC
misosoup41
(5)
sorry.. I deleted the other one
Jul 24, 2018 at 9:21am UTC
Thomas1965
(4571)
In another thread you had the code to count the digits of a number. Same principle here, just instead of counting the digit add it to a var called sum.
Topic archived. No new replies allowed.