Question: C programming language Given a number N, your task is to print N, sum of digit of N, sum of the sum of digit of
C programming language

Given a number N, your task is to print N, sum of digit of N, sum of the sum of digit of N, and so on until the result contains only one digit. For example, consider N 123456. Then: Sum of digit of 123456 is 1+2+3 +4+5+6-21 Sum of the sum of digit of 123456 is sum of digit of 21 is 2+1 3 Format Input The first line contains an integer T-the number of test cases (1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
