/* Note:Your choice is C IDE */
#include "stdio.h"
void main()
{
int a[4];
int i,j,t;
printf("please input four numbers:\n");
for(i=0;i<4;i++)
scanf("%d",&a[i]);
for(i=0;i<3;i++)
for(j=i+1;j<4;j++)
if(a[i]>a[j])
{
t=a[i];
a[i]=a[j];
a[j]=t;
}
for(i=0;i<4;i++)
printf("%4d",a[i]);
printf(" cong da dao xiao shu chu :\n");
for(i=3;i>=0;i--)
printf("%4d",a[i]);
}