Question: java programming Prompt for two integers, and determine whether or not the second number is a multiple of the first number. Repeat until the user
java programming
Prompt for two integers, and determine whether or not the second number is a multiple of the first number. Repeat until the user enters a sentinel value to exit You must create a second method called isMultiple, which receives the two numbers, determines the answer, and returns the result to the main method, where the result is printed. Sample Run: Enter an integer (or 0 to exit): 12 Enter another integer: 36 36 IS a multiple of 12 Enter an integer (or 0 to exit) 14 Enter another integer: 18 18 IS NOT a 14 Enter an integer (or 0 to exit): 0 Goodbye! Enter anTintmultiple oft 14 hint: use % operator
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
