코딩 테스트 (Coding Test)
[프로그래머스] 자릿수 더하기
Universe_lee
2023. 1. 10. 13:54
def solution(n):
answer = 0
for i in str(n):
answer += int(i)
return answer