Advertisement
DraKiNs

[COD] Máximo Divisor Comum

Jul 28th, 2011
438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. // Pegar o MDC de dois números
  2.  
  3. int bigMod(int a, int b)
  4. {
  5.    return (!b) ? a : bigMod(b, a % b);
  6. }
  7.  
  8. //  Criado por Bruno da Silva
  9. // www.ips-team.forumeiros.com
  10. //  www.ips-team.blogspot.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement