Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = 10
- x = 100
- b = 0
- y = int(raw_input('give a number:'))
- while(x>=10):
- if(y/a)<10:
- if(b == 0):
- x = y/10
- else:
- x = y/(10**b)
- else:
- a = a*10
- b = b + 1
- print(x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement