Write a python program to find the sum of the digits of a number
Answers
Answered by
16
Answer:
- Take the value of the integer and store in a variable.
- Using a while loop, get each digit of the number and add the digits to a variable.
- Print the sum of the digits of the number.
- Exit
Similar questions
Social Sciences,
2 months ago
English,
6 months ago
Math,
6 months ago
Physics,
11 months ago
English,
11 months ago