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

PROGRAMMING:Finding the greatest common divisor and the least common multiple of two integers

Luz5年前 (2021-05-10)题库390
Find the greatest common divisor and the least common multiple of two integers. Define a function to find the greatest common divisor and another function to find the least common multiple according to the greatest common divisor. Output the greatest common divisor and the least common multiple in the main function.
###Input format:
Give two integers a and B in the main function line.
###Output format:
Output the greatest common divisor and the least common multiple of integers a and B respectively in the main function.
###Input example:
```in
6 10
```
###Output example:
```out
large_ n=2,least_ n=30
```







answer:If there is no answer, please comment