Advertisement
everblut

Maximo comun denominador

Mar 8th, 2011
1,671
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. #!/bin/bash
  2. #python Mcd
  3.  
  4. def mcd(a,b):
  5.     print " maximo comun divisor"
  6.  
  7.     while a! = 0:
  8.     a,b = b%a, a
  9. return b
  10. print mcd(21,70)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement