y) { min " />
Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - C language: Input 3 integer variables x, y, z, and output the minimum value; how to compile this program?
C language: Input 3 integer variables x, y, z, and output the minimum value; how to compile this program?

#include

int main()

{

int x,y,z,min;< /p>

printf("input three numbers:\n");

scanf("%d %d %d",&x,&y,&z);

min = x;

if(x > y)

{

min = y;

if(y > z)< /p>

min = z;

}else

{

min = x;

if(x > z )

min = z;

}

printf("min = %d\n",min);

return 0 ;

}