摘要: #include <stdio.h>int main(){ int max(int x,int y); int a,b,c; scanf("%d,%d",&a,&b); c=max(a,b); printf("max=%d\n",c); return 0;}int max(int x,int y);{ int z; if(x>y) { z=y; } else { z=y; } return z;}
阅读全文
posted @ 2011-03-15 09:17 秋天的菠菜 阅读(48) 评论(0)
编辑
摘要: 1 #include <stdio.h> 2 int main() 3 { 4 int max(int x,int y); 5 int a,b,c; 6 scanf("%d,%d",&a,&b); 7 c=max(a,b); 8 printf("max=%d\n",c); 9 return 0;10 }11 int max(int x,int y);12 {13 int z;14 if(x>y)15 {16 z=y;17 }18 else19 {20 z=y;21 }22 return z;23 }
阅读全文
posted @ 2011-03-15 09:14 秋天的菠菜 阅读(98) 评论(2)
编辑