Question: Write method Multiple that determines, for a pair of integers, whether the second integer is a multiple of the first. The method should take two
Write method Multiple that determines, for a pair of integers, whether the second integer is a multiple of the first. The method should take two integer arguments and return true if the second is a multiple of the first and false otherwise.
Incorporate this method into an application that inputs one pair at a time and determine whether the second value is a multiple of the first.
Input: Enter first number < to exit >: 6
Enter second number: 12
Output:
12 is a multiple of 6.
Input: Enter first number < to exit >: 6
Enter second number: 3
Output:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
