A valid mobile number M should be digit of length 10 with all number digits.do not use any input message .directly accept mobile numbers one after other as input and q or Q to stop taking inputs.
Answers
Answered by
1
Answer:
Input : 1234 Output : 1 Explanation : The sum of 1+2+3+4 = 10, digSum(x) == 10 Hence ans will be 1+0 = 1 .
Similar questions
Math,
3 months ago
Hindi,
3 months ago
Computer Science,
7 months ago
Math,
7 months ago
Social Sciences,
11 months ago