Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input('n = '))
- a = 0
- while n > 0:
- if n % 10 > a:
- a = n % 10
- n = n // 10
- print(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement