Решить задачу на языке python ​

Приложения:

Ответы

Ответ дал: vimmortal2
1

Программа:

Python:

a, b, c = map(int, input().split())

s = 0

if a % 10 == 0 and a > 499:

   s += a

if b % 10 == 0 and b > 499:

   s += b

if c % 10 == 0 and c > 499:

   s += c

print(s)

Ответ дал: Fedy16
0

Python:

money = [int(input()) for i in range(3)]

left_money = 0

for i in money:

   if i % 10 == 0 and i > 499:

       left_money += i

print(left_money)

2 variant:

print(sum([i for i in [int(input()) for i in range(3)] if i % 10 == 0 and i > 499]))

Вас заинтересует