# include & lt iostream & gt # include & lt math.h & gt # include & lt string.h & gt Use the namespace stdint main(){ char a[80], tempint len, i, j; CIN & gt; & gta; //Enter the integer string len = strlen (a); //Find the length of the input integer string for(int I = 0;; I & ltlenI++){// bubble sort for(int j = 0;; j & ltlen-I; j++)if(a[I]& gt; a[I+j]){ temp = a[I]; a[I]= a[I+j]; a[I+j]= temp; } } for(I = 0; I & ltlenI++)// output the sorted integer string cout <<A [i]; Cout & lt& ltendl returned 0; }