Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def hicelku():
- h = int(input("Ведите первое натуральное число: "))
- v = int(input("Введите второе натуральное число: "))
- b = h
- g = v
- sum1 = 0
- sum2 = 0
- while h > 0:
- sum1 += h % 10
- h //= 10
- while v > 0:
- sum2 += v % 10
- v //= 10
- if sum1 > sum2:
- print(b)
- else:
- print(g)
- hicelku()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement