#include <stdlib.h>
#include <stdio.h>
int a,b,c,max;
int main (){
printf("Donnez trois entiers. \n");
scanf("%d %d %d",&a,&b,&c);
printf("%d\n%d\n%d\n",a,b,c);
if(a>=b){
max=a;}
else if(b>=a) {
max=b; }
if(max>c) {
printf("Le maximum est %d \n",max);}
else if(c>max){
max=c;
printf("Le maximum est %d. \n",max);}
else {
printf("Il n'y a pas de maximum. \n");
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: