作者 Kwafoo [actionscript] 2007-09-11 15:36 (点击下载)

  1. #include<stdio.h>
  2.  
  3. void main()
  4.  
  5. {
  6.  
  7. int max(int x,int y,int z);
  8.  
  9. int a,b,c,d;
  10.  
  11. scanf("%d,%d,%d",&a,&b,&c);
  12.  
  13. d=max(a,b,c);
  14.  
  15. printf("max=%d\n",d);
  16.  
  17. }
  18.  
  19.  
  20.  
  21. int max(int x,int y,int z)
  22.  
  23. {
  24.  
  25. int r;
  26.  
  27. if(x>y>z) r=x;
  28.  
  29. if(y>x>z) r=y;
  30.  
  31. if(z>x>y) r=z;
  32.  
  33. return(r);
  34.  
  35. }
  36.  
  37.  

提交下面的校正或者修改. (点击这里开始一个新的帖子)
姓名: 在 cookie 中记住我的名字

屏幕抓图:(jpeg 或 png)