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