Description
Input
Output
Sample Input
Sample Output
#include "stdio.h" int main() { char a[3],t; int i,j; while(scanf("%s",a)!=EOF) { for(i=0;i<3;i++) for(j=i;j<3;j++) if(a[j]<a[i]) {t=a[i];a[i]=a[j];a[j]=t;} printf("%c %c %c ",a[0],a[1],a[2]); } return 0; }