SHARE
TWEET

Untitled

a guest Sep 20th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n = int(input("Введите шестизначное число: "))
  2. s = 0
  3. for i in range (6):
  4.     k = n % 10
  5.     n = n // 10
  6.     s += k
  7. print(s)
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