daily pastebin goal
6%
SHARE
TWEET

Untitled

a guest Feb 18th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a = int(input())
  2.  
  3. b = ` `
  4.  
  5. while a > 0:
  6.     b = str(a % 2) + b
  7.     a = a // 2
  8.  
  9. print(b)
  10.  
  11. k = int(input())
  12.  
  13. c = ''
  14.  
  15. while k > 0:
  16.     c = str(k % 2) + c
  17.     k = k // 2
  18.  
  19. print(c)
  20.  
  21. if b % c == 0:
  22.     print("%d делится на %d" % (b, c))
  23. else:
  24.     print("%d не делится на %d" % (b, c))
  25.     print("Остаток: %d" % (b % c))
  26. print("Частное: %d" % (b // c))
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