无标题文章

比较三个数大小


a    b    c

                  a>b

      yes                    no

a>c     ac     b

   a        c                b          c

#include

#include

int main()

{

int a,b,c;

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

if(a>b)

{

if(a>c)

printf("%d",a);

else

printf("%d",c);

}

else(a

{

if(b>c)

printf("%d",b);

else

printf("%d",c);

return 0;

}

}

你可能感兴趣的:(无标题文章)