- #include <stdio.h>
- int min(int x, int y)
- {
- int m;
- if(x>y) m = x;
- else m = y;
- return(m);
- }
- main()
- {
- int a=3,b=5,abmin ;
- abmin = min(a,b);
- printf(“min is %d”, abmin);
- }
运行结果为:
登录后提交答案