Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  sd
Language: C/C++
Code:
#include<stdio.h>
int max(int,int);
main()
{
    int c,a,b;
    printf("Please input two input two number (a,b):");
    scanf("%d%d",&a,&b);
    c=max(a,b);
    printf("The max is %d",c);

}

int max(int x,int y)
{
    int z;
    if(x>y)  z=x;
    else     z=y;
    return z;
}
Comments: