Gcd
Contents
Description
Minimum Origin Version Required: 2019 SR0
This function returns the greatest common divisor of a group of given integers n1, n2, n3, etc.
Syntax
int gcd(int n1,int n2[,...])
Parameters
n1, n2
- can be any integer number.
n3, n4, ...
- Optional. can be any integer number.
Return
Returns the greatest common divisor of a group of given integers n1, n2, n3...
Example
gcd(48, 180)=; // ANS: gcd(48, 180)=12 gcd(360, 15)=; // ANS: gcd(360, 15)=15