public class t95{
public static void main(String[] args){
int mp[]={8,6,12,5,14,7,34,56,2,1};
int i,j;
boolean jgt;
for(i=0;i<mp.length;i++){
System.out.print(mp[i]+"\t");
}
System.out.println();
do {j=0;
for(i=0;i<mp.length-1;i++){
j=i+1;
if(mp[i]>mp[j]) {
int t=mp[i];
mp[i]=mp[j];
mp[j]=t;
/*mp[i]^=mp[j];
mp[j]^=mp[i];*/}
}
jgt=true;
for(i=0;i<mp.length-1;i++){
if (mp[i]>mp[j]){
jgt=false;}
}
}
while(jgt=true);
for(i=0;i<mp.length;i++){
System.out.print(mp[i]+"\t");
}
}
}
public static void main(String[] args){
int mp[]={8,6,12,5,14,7,34,56,2,1};
int i,j;
boolean jgt;
for(i=0;i<mp.length;i++){
System.out.print(mp[i]+"\t");
}
System.out.println();
do {j=0;
for(i=0;i<mp.length-1;i++){
j=i+1;
if(mp[i]>mp[j]) {
int t=mp[i];
mp[i]=mp[j];
mp[j]=t;
/*mp[i]^=mp[j];
mp[j]^=mp[i];*/}
}
jgt=true;
for(i=0;i<mp.length-1;i++){
if (mp[i]>mp[j]){
jgt=false;}
}
}
while(jgt=true);
for(i=0;i<mp.length;i++){
System.out.print(mp[i]+"\t");
}
}
}









