-->
当前位置:首页 > 题库

PROGRAMMING:Greatest common divisor and least common multiple

Luz5年前 (2021-05-10)题库427
This topic requires reading in two positive integers a and B, and outputting their greatest common divisor and least common multiple.
###Input format:
Enter 2 integers a and B with absolute value no more than 1000 in one line.
###Output format:
Output the greatest common divisor and the least common multiple of a and B in one line.
###Input example:
```in
16 24
```
###Output example:
```out
8 48
```







answer:If there is no answer, please comment