$\require{cancel}$
GCD(A,B) = A if B = 0 GCD(B,A) if B > A GCD(B, A%B) otherwise
int GetNumber(string prompt);