include<stdio.h>int main(){int a,b,c;scanf("%d%d%d",&a,&b,&c);printf("%d\n",(a>b?a:b)>c?(a>b?a:b):c);return 0;}
// include<stdio.h> int max(int a,int b,int c){ int max=a;if (max<b)max=b;if (max<c)max=c;return max;} int main(){ int a,b,c,x;scanf("%d%d%d",&a,&b,&c); // %d,%d,%d 去掉中间的逗号。x=max(a,b,c);printf("max=%d\n",x);} // // 祝学...
include<stdio.h>int main(){int a,b,c,max;printf("input 3 integers: ");scanf("%d%d%d",&a,&b,&c);max=(a>b)?((a>c)?a:c):((b>c)?b:c);printf("max=%d\n",max);return 0; }ps:调试成功。
main最后少了一个return,这个你应该是用的vc编辑器所必须的