daily pastebin goal
43%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top