Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- if 100 < n < 999:
- x1 = n % 10
- x2 = n % 100 //10
- x3 = n //100
- print('Summ ', x1+x2+x3)
- else:
- print("Несоответствующее значение")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement