WEBSITE RETURNED, HOWEVER SUBMIT QUANTITY IS RESTRICTED PER DAY TO VERY LITTLE (UNDER JUDGE0 NEW POLICY, API PROVIDER). Therefore it is very much for you to pay attention TEST CAREFULLY CODE BEFORE SUBMIT.

Sum of digits

Threads: Write a program to 1 integer. Tính tổng các chữ số của nó

Input: A single integer

Output: Tổng các chữ số của nó

For example 1:
input:
234
output:
9
For example 2:
input:
309
output:
12

You are not logged in? Log in to Submit Now!

5 Comments

Add a Comment