X320: isDivisible

Given two integers, return true if the first number is evenly divisible by the second, and false otherwise. Return false if the second number is 0.

Examples:

isDivisible(30, 5) -> true
isDivisible(22, 5) -> false
isDivisible(100, 20) -> true

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.