digits = input()
s = 0
for digit in digits:
s += int(digit)
print(s)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
digits = input()
s = 0
for digit in digits:
s += int(digit)
print(s)