//输入三个数字,顺序输出
function order(a,b,c){
var min,mid,max;
if(a min=a;
if(b
max=c;
}else{
mid=c;
max=b;
}
}else if(b
if(a
max=c
}else{
mid=c;
max=a;
}
}else{ // a min=c;
if(a mid=a;
max=b;
}else{
mid=b;
max=a
}
}
return min+’ ‘+mid+’ '+max;
}
var result=order(3,83,6);
console.log(result);