Guest User

Untitled

a guest
Jun 14th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. a,b = map(int, raw_input().split())
  2. n = a-b
  3. count = 0
  4. while n!=0:
  5. if n == 10:
  6. print 11*(10**count)
  7. n = 0
  8. elif n%10 == 0:
  9. n = n/10
  10. count += 1
  11. else:
  12. print (n-1)*(10**count)
  13. n = 0
Add Comment
Please, Sign In to add comment