程序代码:
#include<stdio.h> int Max(int a,int b) { int max; max=a>b?a:b; return max; } int main() { int a,b,c,max; printf("Please input three num: a,b,c"); scanf("%d,%d,%d",&a,&b,&c); max=Max(a,b); max=Max(max,c); printf("The Maxnum Is %d.\n",max); return 0; }