AC :-)
Read the problem carefully. Validate all statements before committing to code.
In this case, the inputs were the GCD and LCM of 2 numbers a and b. We are to compute a and b.