Hey again, I am new to C and trying to wrap my head around it. Just for clarification I am not looking for a full solution, just a shove in the right direction.
In my book in chapter 1 there is an exercise as follows.
Ok so pretty straight forward. So far in this chapter only variables and operators have been introduced, no decisional statements or loops have technically been learned yet even though I know of them.If a five digit number is input through the keyboard, write a program to calculate the sum of its digits.
I have been playing with the modulus operator to try and solve the problem, but I am not sure how to approach the problem. Some suggestions would be great!