Home } Calculators } LCM and GCD



Calculate the Least Common Multiple and Greatest Common Divisor of two numbers using this short script. Neat!
First Value
Second Value


Least Common Multiple
Greatest Common Divisor

JavaScript Source Code 2002: Calculators: LCM and GCD

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Command-s). The script is yours!!!