Greatest common divisor code
Removed the one more iteration bug from while loop