Advertisement
Guest User

Untitled

a guest
Feb 24th, 2020
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. int cmmdc(int a,int b)
  2. {
  3. if(a==b)
  4. return a;
  5. else
  6. if(a>b)
  7. return cmmdc(a-b,b);
  8. else
  9. return cmmdc(a,b-a);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement