EXERCICE I : INFORMATIQUE
CCP MP. Un corrigé de Mathématiques 2. 2016. EXERCICE I : INFORMATIQUE.
I.1. def gcd(a,b):. """Donn'ees: aet b deux entiers naturels. R'esultat: le pgcd de a
et b, calcul'e par l'algorithme brut de force""" n=min(a,b) res=1 for i in range(1,n+
1): if a%i==0 and b%i==0: #si i divise a et b res=i return res. I.2. Une fonction ...Télécharger EXERCICE I : INFORMATIQUE pdf