Post Page Advertisement [Top]

python program

Write a program in python to display each digit of given number .

code:

x=int(input("Enter Number"))
while x!=0:
     print(x%10)
     x//=10


this method is very easy to understand

Thank-you



No comments:

Post a Comment

Bottom Ad [Post Page]