23 lines
448 B
C++
23 lines
448 B
C++
#include <iostream>
|
|
|
|
#include "fonction.h"
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
unsigned int a;
|
|
unsigned int b;
|
|
unsigned int plusGrandDiviseur;
|
|
|
|
cout << "Entrez a un entier positif" << endl;
|
|
cin >> a;
|
|
|
|
cout << "Entrez b un entier positif" << endl;
|
|
cin >> b;
|
|
|
|
plusGrandDiviseur = pgcd(a, b);
|
|
|
|
cout << "Le plus grand diviseur commun de " << a << " et " << b << " est " << plusGrandDiviseur << endl;
|
|
|
|
return 0;
|
|
} |