#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
时间: 2024-10-12 15:10:02