#include<stdio.h> int max(int a,int b,int c); int main() { int a,b,c; while(scanf("%d %d %d",&a,&b,&c)!=EOF){ printf("%d\n",max(a,b,c));} return 0; } int max(int a,int b,int c) { int m; m=a; if(b>m) m=b; if(c>m) m=c; return m; }
#include<stdio.h> int max(int a,int b,int c); int main() { int a,b,c; while(scanf("%d %d %d",&a,&b,&c)!=EOF){ printf("%d\n",max(a,b,c));} return 0; } int max(int a,int b,int c) { int m; m=a; if(b>m) m=b; if(c>m) m=c; return m; }
转载于:https://www.cnblogs.com/chenlong991223/p/9880174.html