Question: Write a program to input a positive integer and print the sum of its digit (hint: use while loop) For example, if an input of
Write a program to input a positive integer and print the sum of its digit (hint: use while loop) For example, if an input of 382, the output is 13.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
