+91-85006-22255
Write a program to check whether the given numbers are co-primes.
class AreCoPrimes { public static void main(String s[]) { System.out.println("The given numbers are co-primes : " + areCoPrimes(28, 18)); } public static boolean areCoPrimes(int firstNumber, int secondNumber) {
}
Topic: Java Methods - Parameter Passing And Scope
Read this topic Take test on this topic
Open In App