C语言初学 比较三个数中最大值的问题

#include<stdio.h>

#include<math.h>

main()

{

int x,y,n,m ,z;

      scanf("%d%d%d",&x,&y,&n);

z=max(x,y);

m=max(n,z);

printf("%d. ",m);

}

     int max(int a,int b)

{

if(a>b) return a;

else return b; 

}

原文地址:https://www.cnblogs.com/lj-1568/p/4365718.html