SHARE
TWEET

Untitled

a guest Nov 18th, 2019 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n = int(input("Введите трехзначное число: "))
  2. d1 = n % 10
  3. n = n // 10
  4. d2 = n % 10
  5. n = n // 10
  6. d3 = n % 10
  7. n = n // 10
  8. print("Cумма чисел: ", d1 + d2 + d3)
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