1. You are required to print the Greatest Common Divisor (GCD) of two numbers. 2. You are also required to print the Lowest Common Multiple (LCM) of the same numbers. 3. Take input "num1" and "num2" as the two numbers. 4. Print their GCD and LCM.
Input Format
num1 num2 .. the numbers whose GCD and LCM we have to find.
Output Format
a b .. where 'a' and 'b' are the GCD and LCM respectively.
Constraints
2 <= n <= 10^9
Notice
Try First, Check Solution later
1. You should first read the question and watch the question video.2. Think of a solution approach, then try and submit the question on editor tab.3. We strongly advise you to watch the solution video for prescribed approach.Example
Input
36 24
Output
12 72