Dustin Rhodes
CMPS 261 Fall 2013
Paper: report
To use copy and paste code into the large box below on the left. If you wish to give variables an initial setting type them into the small box on the right. For example here is code you can copy and paste for bubble sort
var i =0;
var j =0;
while(i<list.length){
j=-1;
while(j<i){
j++;
if(list[i]<list[j]){
var temp = list[i];
list[i]=list[j];
list[j]= temp;
}
}
i++;
}
after copying this into the large text box you may put var list = [x,y,z] for whatever list you wish to sort.