int main()
{
int first,second,third;
int maxn = 0;
printf("Enter the first integer:");
scanf("%d",&first);
printf("\nEnter the second integer:");
scanf("%d",&second);
printf("\nEnter the third integer:");
scanf("%d",&third);
if(first > second)
{
if(first > third)
{
if(second > third)
{
printf("%d %d %d\n",third,second,first);
}
else
printf("%d %d %d\n",second,third,first);
}
else
{
printf("%d %d %d\n",second,first,third);
}
}
else
{
if(second > third)
{
if(first > third)
{
printf("%d %d %d\n",third,first,second);
}
else
{
printf("%d %d %d\n",first,third,second);
}
}
else
{
printf("%d %d %d\n",first,second,third);
}
}
return 0;
}