#include <stdio.h>
int main()
{
printf("Please input three integer:");
int integer1 = 0, integer2 = 0, integer3 = 0;
scanf("%d %d %d", &integer1, &integer2, &integer3);
int max = integer1;
if (max < integer2)
max = integer2;
}
if (max < integer3)
max = integer3;
printf("the max integer is %d\n", max);
return 0;
#include <stdio.h>
int main()
{
printf("Please input three integer:");
int integer1 = 0, integer2 = 0, integer3 = 0;
scanf("%d %d %d", &integer1, &integer2, &integer3);
int max = integer1;
if (max < integer2)
{
max = integer2;
}
if (max < integer3)
{
max = integer3;
}
printf("the max integer is %d\n", max);
return 0;
}