Computer Science, asked by vijayalakshmi5794, 5 months ago

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 subhransusahoo94
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