Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 1
- x = int(input('Введите шестизначное число '))
- y = 0
- for i in range(1, 7):
- y += x % 10
- x = x // 10
- print(y)
- # 4
- d = 179
- for y in range(1543):
- d += 2007
- print(d)
- # 2
- f = int(input("Введите число "))
- g = 0
- t = 1
- for i in range(f):
- g += t
- t += 2
- print(g)
- # 3
- e = int(input())
- v = 0
- for i in range(9):
- h = int(input())
- if e * h < 0:
- v += 1
- e = h
- print(v)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement