Problem A: 调用函数,求三个数中最大数
#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; }