题目描述
please write a program, where the input is two positive integers, and the output is their Greatest common divisor and Minimum common multiple
输入
two positive integers, which are smaller than 1000
输出
two positive integers, which are the value of their Greatest common divisor and Minimum common multiple
样例输入 Copy
5 7
样例输出 Copy
1 35
a,b=map(int,input().split())
m=a
n=b
t=0
s=0
while(a%b!=0):
t=a%b
a=b
b=t
s=m*n//b
print('%d %d'%(b,s))