DEV/DEV1.1/TP05/borne.c
2022-10-12 16:41:20 +02:00

22 lines
325 B
C

#include <stdio.h>
#include <stdlib.h>
int main(void){
int x = 0;
int y = 0;
int i;
printf("Rentrer un entier: ");
scanf("%d",&x);
y = x;
while(x!=(-1)){
if(x<y){
y=x;
}
printf("Rentrer un entier sur lequel baser la table (-1 pour arretez): ");
scanf("%d",&x);
}
printf("%d",y);
return EXIT_SUCCESS;
}