I am in a c++ programming class and I don't want to wait to get help from the teacher with this exercise i am hoping somebody here could help with this exercise...
"Write a program that displays the sum of the digits of any non negative interger. for example
Enter an interger: 145
Sum of digits is 10
Enter an interger: 8888
Sum of digits is 32
Could somebody please help and remember I am just beginning c++ please dont make it too complicated
"Write a program that displays the sum of the digits of any non negative interger. for example
Enter an interger: 145
Sum of digits is 10
Enter an interger: 8888
Sum of digits is 32
Could somebody please help and remember I am just beginning c++ please dont make it too complicated