#C11539. Taco Sum of Digits
Taco Sum of Digits
Taco Sum of Digits
You are given a list of non-negative integers. Your task is to compute the sum of the digits of each integer. For an integer \(n\), the sum of its digits is defined as \(\sum_{i} d_i\), where \(d_i\) represents each digit in the decimal representation of \(n\).
You should read the input from standard input and write the result to standard output. The result for each integer must be output in the order of input, with each sum separated by a single space.
inputFormat
The first line of input contains an integer \(n\) representing the number of non-negative integers. The second line contains \(n\) space-separated non-negative integers.
outputFormat
Output a single line containing \(n\) integers where each integer is the sum of digits of the corresponding input number. The sums should be separated by a single space.
## sample4
123 456 7890 0
6 15 24 0
</p>