Preparation for Azercell Cup, 5 - 7 classes
Sum of digits
You are given a number n (1 ≤ n ≤
1050). You have to find the sum of digits of n.
The first line contains the number of test cases t (t < 100). The next t lines contain the numbers whose sum of digits you have to calculate.
Output t lines containing the sum of digits of the numbers.
3 123 43 78903
6 7 27