Files
CITISE1/IUT/Info1/TD/Exercices/9.1_PGCD/fonction.cpp
2026-04-08 20:11:20 +02:00

13 lines
206 B
C++

#include "fonction.h"
unsigned int pgcd(unsigned int a, unsigned int b) {
unsigned int echange;
while (b != 0) {
echange = b;
b = a % b;
a = echange;
}
return a;
}