Question: Write a program to calculate the sum of all digits of a given number. for example, if the input is 1356, your sum should be
Write a program to calculate the sum of all digits of a given number. for example, if the input is 1356, your sum should be 15. Code in C please
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
