C Program to find LCM using while Loop and if Statement