{
int t;
if (a>b) t=a;
else t=b;
return t;
}
int max(int a,int b,int c)
{
int t;
if (a>b)
if (a>c)
t=a;
else
t=c;
else
if (b>c)
t=b;
else
t=c;
return t;
}
#include
<
stdio.h
>
#include < conio.h >
int max( int , int , int );
void main()
{
int a,b,c,t;
clrscr();
printf("Please input tree number:");
scanf("%d,%d,%d",&a,&b,&c);
t=max(a,b,c);
printf("The max number is :%d",t);
}
int max( int a, int b, int c)
{
int t;
if (a>b)
if (a>c)
t=a;
else
t=c;
else
if (b>c)
t=b;
else
t=c;
return t;
}
#include < conio.h >
int max( int , int , int );
void main()
{
int a,b,c,t;
clrscr();
printf("Please input tree number:");
scanf("%d,%d,%d",&a,&b,&c);
t=max(a,b,c);
printf("The max number is :%d",t);
}
int max( int a, int b, int c)
{
int t;
if (a>b)
if (a>c)
t=a;
else
t=c;
else
if (b>c)
t=b;
else
t=c;
return t;
}