This commit is contained in:
Pierre Valarcher 2021-09-28 10:18:55 +02:00
parent 42bcdeb3dc
commit 75667de205

View File

@ -3,6 +3,23 @@
int main (int argc, char *argv[])
{
int a, b, c;
printf("Entrer un premier entier : ");
scanf("%d", &a);
printf("Entrer un deuxieme entier : ");
scanf("%d", &b);
printf("Entrer un troisieme entier : ");
scanf("%d", &c);
printf("Entiers lus : %d, %d, %d\n", a, b, c);
if ((a >= b) && (a >= c))
printf("Max = %d\n", a);
if ((b >= a) && (b >= c))
printf("Max = %d\n", b);
if ((c >= a) && (c >= b))
printf("Max = %d\n", c);
return EXIT_SUCCESS;