Write a program in java
to enter any two numbers and print their all common factors.
Answers
Answered by
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
Math,
18 days ago
Chemistry,
18 days ago
Hindi,
18 days ago
Math,
1 month ago
Physics,
1 month ago
Environmental Sciences,
8 months ago
Social Sciences,
8 months ago
Math,
8 months ago