Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function [gcd] = myGCD(a,b)
- if b == 0
- gcd = a;
- return
- else
- gcd = myGCD(b,mod(a,b));
- return
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement