#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c,first,second,third;
printf("please input num:");
scanf("%d%d%d",&a,&b,&c);
if(a > b )
{
first = a;
second = b;
if(b > c)
third = c;
else
{
second = c;
third = b;
}
}
if(b > a)
{
first = b;
second = a;
if(a > c)
third = c;
else
{
second = c;
third = a;
}
}
else if(c > a)
{
first = c;
second = a;
if(a > b)
third = b;
else
{
second = b;
third =a;
}
}
printf("first = %d,second = %d, third = %d\n",first,second,third);
return 0;
}