Smallest N digit number divisible by N
Given a positive integers N, the task is to find the smallest N digit number divisible by N. Examples: Input: N = 4 Output: 1000 Explanation: 1000 is the smallest 4-digit number divisible by 4. Input: N = 5 Output: 10000 Explanation: 10000 is the smallest 5-digit number divisible by 5. Approach: A series will be formed like… Read More »
