Below is the algorithm:- [apcode language="jscript"] console.log("GCD of 35 and 75 ", gcd(35, 75)); console.log("LCM of 35 and 75 ", (35*75)/gcd(35,75)); /* function to calculate GCD/HCF...