Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - C++ Compare two numerical functions and help me see what is wrong.
C++ Compare two numerical functions and help me see what is wrong.
# include & ltstdio.h & gt

int max(int x,int y); //Declare before the main function or put the definition directly before the main function.

int main()

{

int max(int x,int y); //declaration of called function max

int a,b,c; ? //Define the independent variable abc as shaping.

//scanf("%d, %b ",& 1, & b); ? //The value of the input variable a b has an input error d-b B

Scanf("%d, %d ",& i, & amp); ? //enter the value of variable a b.

c=max(a,b); //Call the max function to assign the value to C.

printf("max=%d\n ",c); ? //output the value of c

Returns 0;

}

int max(int x,int y)? //define the max function, and the function value is shaping.

{

int z;

if(x & gt; y)z = x;

else z = y;

Return (z);

}