RosettaCodeData/Task/Greatest-common-divisor/C++/greatest-common-divisor-2.cpp

7 lines
177 B
C++
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
#include <boost/math/common_factor.hpp>
#include <iostream>
int main() {
std::cout << "The greatest common divisor of 12 and 18 is " << boost::math::gcd(12, 18) << "!\n";
}