Given a positive four-digit integer number, your task is to find the sum of the digits this number. Sample Input 1: 1234 Sample Output 1: 10


Current behavior:

Desired behavior

Repl link:

code snippet

:wave: Welcome to the forums, @IlyasMelis!

It seems that this post is asking for answers to a school assignment. It is against Replit Ask policy for community members to request or post complete answers to homework-like questions. On the other hand, the community can assist you in working through and understanding the core fundamentals of computer programming to help you figure out your question by yourself, though.