DEV/DEV1.1/TP05/diviseur.c
2022-10-04 17:30:38 +02:00

20 lines
229 B
C

#include <stdio.h>
#include <stdlib.h>
int main(void){
int x;
int y;
int temp;
printf("Rentrer deux entier: ");
scanf("%d %d",&x,&y);
while(y!=0){
temp=y;
y=x%y;
x=temp;
}
printf("%d",x);
return EXIT_SUCCESS;
}