C language

Sum of its digits

(g) If a five-digit number is input through the keyboard, write a program to calculate the sum of its digits. (Hint: Use the modulus operator ‘%’) 

Screenshot (12).png

Advertisements