a = list(map(int, input().split()))
ans = 0
for i in a:
if i % 10 == 7:
ans += i
print(ans)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
a = list(map(int, input().split()))
ans = 0
for i in a:
if i % 10 == 7:
ans += i
print(ans)