Problem Statement
Smallest number to be added to 1000 to make it divisible by 18 is:
Explanation
1000 ÷ 18 gives remainder 10 (since 18×55=990). To reach a multiple, add 8.
So 1000 + 8 = 1008, which is divisible by 18.
Code Solution
SolutionRead Only
1000 mod 18 = 10 ⇒ need 18−10 = 8
