write a python program to enter a multidigit nhmber then print their sum in loop
Answers
Answered by
0
here is your answer ⤵️
# Python Program to find Sum of Digits of a Number using While Loop
Number = int(input("Please Enter any Number: "))
Sum = 0
while(Number > 0):
Reminder = Number % 10
Sum = Sum + Reminder
Number = Number //10
print("\n Sum of the digits of Given Number = %d" %Sum)
__hope it help ✌️
Similar questions
Math,
6 months ago
Computer Science,
6 months ago
Social Sciences,
6 months ago
English,
11 months ago
Math,
11 months ago
Biology,
1 year ago
Biology,
1 year ago
English,
1 year ago