examen

CCP MP 2016 maths2 Exercice I (informatique) I.1 Soit a et b deux ...

CCP MP 2016 maths2. Exercice I (informatique). I.1 Soit a et b deux entiers naturels non nuls. On teste chaque entier k de 1 à min(a, b) pour savoir s'il divise a et b et on met à jour une variable d qui est le dernier diviseur commun k trouvé. def gcd(a,b): m = min(a,b) d = 1 for k in range(1,m+1): if (a % k == 0) and (b % k == 0):.



Télécharger CCP MP 2016 maths2 Exercice I (informatique) I.1 Soit a et b deux ... pdf