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

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

2019-09-12 10:33:56 -07: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";
}