Question: Question 12 (10 points) Develop body of the Java method, int theValue(int a, int b, int n), that takes three integer numbers as its arguments

Question 12 (10 points) Develop body of the Java method, int theValue(int a, int b, int n), that takes three integer numbers as its arguments and returns: the smallest number larger than n that is divisible by both a and b for example if the method is called as: theValue(3, 5, 34) // returns 45 (the smallest number larger than 34, divisible by both 3 and 5) theValue(6, 4, 32) //returns 36 (the smallest number larger than 32, divisible by both 6 and 4)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
