输入两个数,输出其中较大的数
include < stdio . h > include < windows . h >void main ()
{ int a , b , m ;
int maxf ( int x , int y );
scanf (“% d ,% d “,& a ,& b );
m = maxf ( a , b );
printf (” max =% d n ", m );
system (" pause );
}
int maxf ( int x , int y )
{
int t ;
if ( x > y )
t = X ;
else
t = y ;
return t ;
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)