Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. a = int(input())
  2. b = int(input())
  3. g = 9
  4. while True:
  5.    
  6.     if (a/g and b/g):
  7.         a = a/g
  8.         b = b/g
  9.     elif:
  10.         g = g-1
  11.         a = a/g
  12.         b = b/g
  13.     else:
  14.         breake
  15.         print(a,b)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement