当前位置:网站首页>C language foundation ----- write a function to find the larger value of two unequal integers

C language foundation ----- write a function to find the larger value of two unequal integers

2022-06-23 01:49:00 coder--x

The main function :

int main()
{
   int a = 0;
   int b = 0;
   scanf("%d %d\n", &a &b);
   int m = Max(a, b);
   printf("%d\n",m);
   return 0;
}

The body part of the function :

int Max(int x, int y)
{
   if(x > y)
      return x;
   else
      return y;
}

原网站

版权声明
本文为[coder--x]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202220511562608.html