DEV/DEV1.1/TP05/borne.c

22 lines
325 B
C
Raw Normal View History

2022-10-12 16:41:20 +02:00
#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;
}