SHARE
TWEET

Untitled

Alinchik Jul 18th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. x= int(input())
  2. b= int(input())
  3. def sum_digits(x):
  4.     s = 0
  5.     while x!= 0:
  6.        s += x%10
  7.        x = x//10
  8.     return s
  9. print(sum_digits(x))
  10. def sum_digits(x):
  11.     s = 0
  12.     while x!= 0:
  13.        s += x%10
  14.        x = x//10
  15.     return s
  16. print(sum_digits(b))
  17. if sum_digits(x)>sum_digits(b):
  18.     print(sum_digits(x))
  19. else:
  20.     print(sum_digits(b))
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