/HCF-Calc

NPM Package to calculate the Highest Common Factor of any two numbers

Primary LanguageJavaScriptMIT LicenseMIT

NPM Version NPM License NPM Downloads NPM Total Downloads

HCF-Calc

A Package to calculate the Highest Common Factor of any two numbers.

Install:

npm install hcf-calc

Usage:

import hcfCalc from 'hcf-calc';

console.log(hcfCalc(12, 16));

This will log the HCF- 4 in this case.