![]() |
![]()
| ![]() |
![]()
NAMEstd::gcd - std::gcd Synopsis Defined in header <numeric>
Parametersm, n - integer values Return value If both m and n are zero, returns zero. Otherwise, returns the
greatest common
ExceptionsThrows no exceptions. NotesFeature-test macro: __cpp_lib_gcd_lcm Example// Run this code
See also lcm constexpr function template returning the least common
multiple of two
|