首页 > 代码库 > 0721JS

0721JS

输入三个整数,x,y,z,最终以从小到大的方式输出

<!--<script>
var x=prompt("请输入数字")
var y=prompt("请输入数字")
var z=prompt("请输入数字")
//if(x<y&&x<z&&y<z){
alert (x+","+y+","+z)
}
if(x<z&&x<y&&z<y){
alert (x+","+z+","+y)
}
if(y<z&&y<x&&z<x){
alert (y+","+z+","+x)
}
if(y<x&&y<x&&x<z){
alert (y+","+x+","+z)
}
if(z<y&&z<x&&y<x){
alert (z+","+y+","+x)
}
if(z<x&&z<y&&x<y){
alert (z+","+x+","+y)
}
</script>-->

0721JS