谢谢各位啦!
又学了不少知识!
奋斗改变一切!!
#include <stdio.h>
signed long max (signed long a1,signed long a2,signed long a3);
int main ( void )
{
signed long num1,num2,num3;
printf ("input 3 numbers(or type exit to quit):");
while (3==scanf ("%ld%ld%ld",&num1,&num2,&num3))
{
printf ("The max number is %d\n",max (num1,num2,num3));
printf ("input 3 numbers:");
}
return 0;
}
signed long max (signed long a1,signed long a2,signed long a3)
{
if ((a1>a2)&&(a1>a3))
a3=a1;
else if ((a2>a1)&&(a2>a3))
a3=a1;
else
return a3;
}