#include "stdio.h"
#include "string.h"
int main()
{
char s[3][20] = { 0 }, t[20] = {0};
int i,j;
for (i = 0; i < 3; i++)
{
scanf("%s", s[i]);
}
for(i=0;i<3;i++)
for (j = 0; j < 3 - i - 1; j++)
{
if (strcmp(s[j], s[j + 1]) > 0)
{
strcpy(t, s[j]);
memset(s[j], 0, sizeof(s[j]));
strcpy(s[j], s[j+1]);
memset(s[j+1], 0, sizeof(s[j+1]));
strcpy(s[j+1], t);
memset(t, 0, sizeof(t));
}
}
for (i = 0; i < 3; i++)
puts(s[i]);
getch();
return 0;
}
0.0分
0 人评分