//比较三个数的大小并依次输输出;
var a=112;
var b=66;
var c=8;
document.write("比较之前 "+a+" "+b+" "+c+"<br>");
var temp=0;
if(a>b){
temp=a;
a=b;
b=temp;
}
if(a>c){
temp=a;
a=c;
c=temp;
}
if(b>c){
temp=b;
b=c;
c=temp;
}
document.write("比较之后 "+a+" "+b+" "+c);