Advertisement
Olegos

christos_voskres

Mar 1st, 2021
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. n = int(input('n = '))
  2. a = 0
  3. while  n > 0:
  4.     if n % 10 > a:
  5.         a = n % 10
  6.     n = n // 10
  7. print(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement