In the greenhouse, they planted different varieties of orchids in 2 rows. Flowers of one variety were placed at a distance of A cm between plants, and the other - at B cm. How far will the orchids of both varieties be next to each other?
Write the solution to the problem as a function solve(A, B)
that returns the answer. You don't need to enter or withdraw anything!
Examples
# |
Input |
Output |
1 |
15 18 |
90 |
Запрещенные операторы:lcm;gcd