#include "stdio.h"
void main(void)
{
int a[4];
int mid;
int j;
printf("请输入四个整数:\n");
scanf("%d,%d,%d,%d",&a[0],&a[1],&a[2],&a[3]);
for (int i = 0; i< 4; i++)
{
for(j = i+1;j<4;j++)
{
if (a[i] > a[j])
{
mid = a[i];
a[i] = a[j];
a[j] = mid;
}
}
}
printf("%d,%d,%d,%d\n",a[0],a[1],a[2],a[3]);
}