I am having trouble with getting this code to work 100% correctly. If the user enters a larger number as the first number, then the program gives the correct Greatest Common Denominator.
However, If a Smaller number is entered at first, then the smaller number is returned as the GCD.
I have been trying to figure this out for hours to no avail. Please someone help!!