Sum of Digits
Time Limit: 1 sec
Write a program which accepts an integer between 0 and 9999 and returns the sum of all digits in the number.
There are several lines of input in the input file. Each line contains one integer numbers N (0<=N<=9999). Input is terminated by EOF.
For each line of input you have to print a line of output, this line contains the sum of all digits in the number N.
Inter University Programming Contest - 2017 [BGC Trust University Bangladesh]
Problem Setter: Shahin ShamS