supose a number more than 1 digit number is divisible by 11. is the number obtained by reversing all the digits also divisible by 11. give reasons
Answers
Answered by
0
Step-by-step explanation:
Since input number may be very large, we cannot use n % 11 to check if a number is divisible by 11 or not, especially in languages like C/C++. The idea is based on following fact.
A number is divisible by 11 if difference of following two is divisible by 11.
Sum of digits at odd places.
Sum of digits at even places.
Similar questions