30 lines
514 B
C
30 lines
514 B
C
/*
|
|
|
|
*/
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
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;
|
|
}
|