This project shows how th Euclidean algorithm calculates the greatest common divisor(GCD) of two numbers.
javac Euclids.java
This program takes in 2 arguments
- Input value one
- Input value two The output of the program will be "Input value one", "Input value two" along with its GCD. The program will also show the number of iterations used to find the GCD.
./java Euclids 20 4
The GCD of 20 and 4 is 4
Calculated in 1 iterations