algorithms.tutorialhorizon.com
Check if Number is divisible by its digits | Algorithms
Objective: Given a number, write a program to check if the number is divisible by all of its digits separately. Example: N = 15 Output: true (15 is divisible by 1 and 5) N = 123 Output: true (123 is divisible by 1, 2 and 3) N = 143 Output: false (143 is not divisible by 4 and 3)