2020-07-04

    技术2026-06-05  7

    三个数输出最大值 #include<stdio.h>

    int max(int a,int b,int c);

    int main()

    {

    int a = 0,b = 0,c = 0,x;

    scanf("%d %d %d",&a,&b,&c);

    x=max(a,b,c); printf(“max=%d\n”,x);

    return 0;

    }

    int max(int a,int b,int c)

    {

    int d=a;if(b>d)d=b;if(c>d)d=c:return d;

    }

    Processed: 0.011, SQL: 9