33 lines
700 B
C
33 lines
700 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main()
|
|
{
|
|
int num1, num2, num3;
|
|
printf(" Entrez le 1er entier = ");
|
|
scanf("%d", &num1);
|
|
printf("\n Entrez le 2nd entier = ");
|
|
scanf("%d", &num2);
|
|
printf("\n Entrez le 3ème entier = ");
|
|
scanf("%d", &num3);
|
|
if (num1 > num2)
|
|
{
|
|
if (num1 > num3)
|
|
{
|
|
printf("\n Plus grand nombre est = %d \n", num1);
|
|
}
|
|
else
|
|
{
|
|
printf("\n Plus grand nombre est= %d \n", num3);
|
|
}
|
|
}
|
|
else if (num2 > num3)
|
|
{
|
|
printf("\n Plus grand nombre est= %d \n", num2);
|
|
}
|
|
else
|
|
{
|
|
printf("\n PLus grand nombre est= %d \n", num3);
|
|
}
|
|
return 0;
|
|
} |