设计一个函数,实现输入三个数 ,并输出其中最大值,输入三个数6,9,22,三个数中最大值是22
int max(int a,int b,int c) { int d=a>b?a:b; return d>c?d:c; }