Computer Science, asked by prasadrajkumar73, 30 days ago

Write a program in python to print a sum of the digits of a 2 digit number.

Answers

Answered by singhkunwarjeet151
0

Answer:

1. Take the value of the integer and store in a variable.

2. Using a while loop, get each digit of the number and add the digits to a variable.

3. Print the sum of the digits of the number

Similar questions