22 lines
325 B
C
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;
|
||
|
}
|