Learn R Programming

minMSE (version 0.3.1)

gcd: Greatest Common Divisor

Description

Computes the GCD of two numbers.

Usage

gcd(v, t)

Arguments

v

first input number.

t

second input number.

Value

Computes the GCD of the two given numbers

References

https://rosettacode.org/wiki/Greatest_common_divisor#R

Examples

Run this code
# NOT RUN {
gcd(6,12)
# }

Run the code above in your browser using DataLab