-->
当前位置:首页 > 题库 > 正文内容

编程题:1028 最小公倍数和最大公约数

Luz3年前 (2022-04-21)题库728
编程求最小公倍数和最大公约数。

### 输入格式:

输入文件有多行,每行有两个正整数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.







答案:若无答案欢迎评论

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。