Advertisement
ipsBruno

(Javascript) MDC

Apr 24th, 2012
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. //      Simples MDC com algorítimo de Euclides
  3. //
  4.  
  5. function mdc(a, b) {
  6.         return (b) ? mdc(b, a % b) : a;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement