program to find GCD and LCM