Given an integer N. The task is to find sum of all digits of N.
The first line of input contains an integer T, total number of testcases. Then following T lines contains an integer N.
For each testcase in a new line, print the sum of digits of N.
1 ≤ T ≤ 30
1 ≤ N ≤ 103
Testcase 1: The sum of digits the given number 123: 1 + 2 +3 = 6.
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.