Advertisement
PavelMiridonov

Untitled

Feb 10th, 2021
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. n = int(input())
  2. if 100 < n < 999:
  3.     x1 = n % 10
  4.     x2 = n % 100 //10
  5.     x3 = n //100
  6.     print('Summ ', x1+x2+x3)
  7. else:
  8.     print("Несоответствующее значение")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement