Mwnci gcd() Function

Syntax

gcd(integer,integer)

Description

The gcd() function returns the greatest common divisor (GCD) of two integers. The GCD of two integers is the largest number that divides both of them without leaving a remainder.

Example

include("math")
println(gcd(60,48))
println(gcd(30,14))


12
2