SonyaI Feb 14th, 2020 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print('Введите 2 натуральных числа')
  2. n1=input()
  3. n2=input()
  4. def Summ(x):
  5.     return (sum(map(int,str(x))))
  6. x1 = Summ(n1)
  7. x2 = Summ(n2)
  8. if x1>x2: print('Больше сумма цифр первого')
  9. else: print('Больше сумма цифр второго')
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