Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int cmmdc(int a,int b)
- {
- if(a==b)
- return a;
- else
- if(a>b)
- return cmmdc(a-b,b);
- else
- return cmmdc(a,b-a);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement