Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """pgcd(a,b): calcul du 'Plus Grand Commun Diviseur' entre les 2 nombres entiers a et b"""
- if b==0:
- return a
- else:
- r=a%b
- return pgcd(b,r)
- # Exemple d'utilisation:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement