# Digit Summation Challenge

Easy

30.8% Acceptance

<p>
Your task is to develop a program that computes the sum of all digits in a given integer <b>N</b>.
</p>

## Input Format

<p> The input begins with an integer <b>T</b>, representing the number of test cases to follow. Each of the next <b>T</b> lines contains a single integer <b>N</b>. </p>## Output Format

<p> For every test case, output a single line containing the sum of the digits of <b>N</b>. </p>## Constraints

- $1 \leq T \leq 1000$
- $1 \leq N \leq 1000000$

## Sample Input and Output

### Example #1:

Input:

`3 12345 31203 2123`

Output:

`15 9 8`

#### Explanation

In the provided sample, you are presented with three test cases. Calculating the sum of digits for each number in the given test cases yields the results 15, 9, and 8, respectively.