Computer Science, asked by arshiad09, 1 month ago

Write a program in java
to enter any two numbers and print their all common factors.​

Answers

Answered by ramkansal9822
0

Answer:

public class common_factor.

{

public static void main(String[] args)

{

int a = 54, b = 24;

System.out.println("GCD of " + a +" and " + b + " is " + gcd(a, b));

}

}

Explanation:

Similar questions