Computer Science, asked by nevonj2am, 4 months ago

Write a python program to find the sum of the digits of a number

Answers

Answered by XxRonakxX
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