Course Hero Logo

gcd.cpp - #include<iostream> #include<cmath> using...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 out of 1 page.

#include<iostream>#include<cmath>using namespace std;int gcd(int a,int b){if(b==0)return a;return gcd(b,a%b);}
End of preview. Want to read the entire page?

Upload your study docs or become a

Course Hero member to access this document

Term
Winter
Professor
ANImesh
Tags
int gcd

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture