k = 0n = str(input())for digit in n: if int(digit)>5: k += int(digit)print(k)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
k = 0
n = str(input())
for digit in n:
if int(digit)>5:
k += int(digit)
print(k)