Learn R Programming

schoolmath (version 0.4.1)

gcd: Greatest common divisor of two numbers

Description

This function gives the greatest common divisor of two numbers

Usage

gcd(x, y)

Arguments

x

first number

y

second number

Author

Joerg Schlarmann

See Also

scm

Examples

Run this code
gcd(42, 56)

Run the code above in your browser using DataLab