Computer Science, asked by pranavphotographer00, 5 months ago

Write a program to calculate the sum of the digit on a non negative integer. ​

Answers

Answered by guptasparshi016
0

Answer:

Python Program to Find the Sum of Digits in a Number

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.

Explanation:

hope it helps

Similar questions