Please Help me with problem "Divisible" in JAVA
Hello, I would need your help. Have any of you solved the "Code Coach" tag with the "Divisible" tag in Java? It is at the "Medium" level but only for the Pro version. I fail in case 3, where it is locked. The problem is this: You need to know if a number is divisible by each of a group of other numbers. If you are given the number and the group of other numbers, you will test to make sure that it is divisible by all of them. Task: Test your number against all of the other numbers that you are given to make sure that it is divisible by them. Input Format: Two inputs: an integer value (the number you are testing) and a string of variable length of the integers that you should test against separated by spaces. Output Format: A string that says 'divisible by all' or 'not divisible by all'. Sample Input: 100 2 5 10 Sample Output: divisible by all Explanation: 100 is divisible by 2, 5, and 10.