输出两个数中的最大数

#include<stdio.h>
int get_max(int x, int y)
{return (x > y) ? (x) : (y); }
int main()
{
    int num1 = 10;
    int num2 = 20;
    int max = get_max(num1, num2);
    printf("%d", max);
    return 0;


}

猜你喜欢

转载自blog.csdn.net/family_love_1998/article/details/86737682
今日推荐