choiseoha2-gcd_lcm
v1.2.1
Published
This is just greatest_common_divisor-least_common_multiple calculator.
Downloads
7
Readme
This is just greatest_common_divisor-least_common_multiple calculator.
First, install
$ npm i choiseoha2-gcd_lcm
Example
const gcd_lcm_cal = require('choiseoha2-gcd_lcm');
const num1 = 6;
const num2 = 9;
result = gcd_lcm_cal(num1, num2);
console.log(result);
Run Console
{
'0': 3,
'1': 18,
"gcd": 3,
"lcm": 18,
"greatest_common_divisor": 3,
"least_common_multiple": 18
}