Question: not sure what i am missing in my code (the red on the left shows what i did wrong) Feedback Given two integers, return true
Feedback 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. 0.83/ 10 Examples: Behavior Result isDivisible(30, 5) -> true is Divisible(30,5) -> true isDivisible(22, 5) -> false is Divisible(22,5) -> false isDivisible(100, 20) -> true is Divisible(100, 20) -> true is Divisible(99, 3) -> true 1 public boolean isDivisible(int numi, int num2) 2 { return num1 % num2 - @; is Divisible(75, 18) -> false is Divisible(-60, 3) -> true Check my answer! Reset Next exercise is Divisible(20,0) ArithmeticException:/by zero hidden
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
