Greatest common divisor: Difference between revisions
Content deleted Content added
Add Verilog GCD |
|||
Line 542:
=={{header|C++}}==
<lang cpp>#include <iostream>
#include <numeric>
int main() {
}</lang>
{{libheader|Boost}}
<lang cpp>#include <boost/math/common_factor.hpp>
#include <iostream>
int main(
std::cout << "The
▲ << "and the greatest common divisor " << boost::math::gcd( 12 , 18 ) << " !" << std::endl ;
}</lang>
{{out}}
<pre>The
=={{header|c sharp|C#}}==
|