Question: Intro to Java Question: Write a Java program and develop and use a static method int computeGcd(int firstNumber, int SecondNumber) This method will compute GCD
Intro to Java Question:
Write a Java program and develop and use a static method
int computeGcd(int firstNumber, int SecondNumber)
This method will compute GCD of the two numbers and returns the value to the caller. GCD is greatest common divisor. Research on what GCD is and how to compute the value mathematically if you are not familiar with it. Then code the method. Use the method in main for any two numbers and print results.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
