编程题:1028 最小公倍数和最大公约数
编程求最小公倍数和最大公约数。
### 输入格式:
输入文件有多行,每行有两个正整数m和n。
### 输出格式:
要求输出它们的最小公倍数和最大公约数。中间用空行隔开,最后一行不加空行。
### 输入样例:
in
3 7
6 9
### 输出样例:
out
The lowest common multiple of 3 and 7 is 21.
The greatest common divisor of 3 and 7 is 1.
The lowest common multiple of 6 and 9 is 18.
The greatest common divisor of 6 and 9 is 3.
答案:若无答案欢迎评论
### 输入格式:
输入文件有多行,每行有两个正整数m和n。
### 输出格式:
要求输出它们的最小公倍数和最大公约数。中间用空行隔开,最后一行不加空行。
### 输入样例:
in
3 7
6 9
### 输出样例:
out
The lowest common multiple of 3 and 7 is 21.
The greatest common divisor of 3 and 7 is 1.
The lowest common multiple of 6 and 9 is 18.
The greatest common divisor of 6 and 9 is 3.
答案:若无答案欢迎评论