Question: Write a method isDivisible that uses the remainder operator (%) to determine whether ten input integers are divisible by 5 or not. The method should
Write a method isDivisible that uses the remainder operator (%) to determine whether ten input integers are divisible by 5 or not. The method should take an integer argument and return true if the integer is divisible by 5 and false otherwise. Incorporate this method into an application that inputs a sequence of integers (one at a time) and determines the result.
Step by Step Solution
3.38 Rating (170 Votes )
There are 3 Steps involved in it
Here is how you might structure the program A method named isDivisible that takes one integer as inp... View full answer
Get step-by-step solutions from verified subject matter experts
