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
Hindi,
2 months ago
Biology,
2 months ago
Computer Science,
5 months ago
Math,
5 months ago
Social Sciences,
10 months ago