/*
输入m,n = 23 56
较小的是:23
Press any key to continue
*/
#include
int min(int a, int b) {
if(a < b) return a;
return b;
}
int main() {
int m,n;
printf("输入m,n = ");
scanf("%d%d",&m,&n);
printf("较小的是:%d\n",min(m,n));
return 0;
}
#include
int min(int a, int b)
{
return a < b ? a : b;
}
void main() {
int x,y,z;
printf("请输入两个数:\n");
scanf("%d%d",&x,&y);
z = min(x, y);
printf("min = %d\n", z);
}
#include
int min(int x, int y) {
return x < y ? x : y;
}
void main() {
int a = 1, b = 2;
int c = min(a, b);
printf("min = %d\n", c);
}
int min(int x, int y)
{
return x}