Question: Write a java method that returns true if the two ints passed as argument are coprime to each other; else it returns false. The function
Write a java method that returns true if the two ints passed as argument are coprime to each other; else it returns false. The function returns a boolean value. Two integers are called coprime in number theory if their greatest common factor is 1. You must use only for loop(s)in this question wherever required. You are not allowed to use any Math libraries in this method.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
