Python programming codes
43 subscribers
25 photos
1 video
83 files
82 links
Uploading All programming codes are updating Daily
ask doubts in comment box 🎁☑️
Download Telegram
#reverse number

#while_loop
n = int(input("enter the value: "))

rev = 0

while n != 0:
rem = n%10
rev = rev*10 + rem
n = n//10
print("Reverse number",rev)
#sum of digits

#while_loop

n = int(input("enyer the value : "))

sum = 0
while n != 0:
rem = n%10
sum += rem
n = n//10

print("sum of digits",sum)