<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<!--<script type="text/javascript">
var attr=Array();
for(var i=0;i<10;i++){
attr[i]=prompt("请输入第"+(i+1)+"个数")
}
for(var a=0;a<10;a++){
for(var b=a+1;b<10;b++){
if(attr[a]<attr[b]){
var x=attr[a];
attr[a]=attr[b];
attr[b]=x;
}
}
}
for(var t in attr){
document.write(attr[t]+" ");
}
</script>-->
<script>
var attr=Array()
for(var i=0;i<10;i++)
{
attr[i]=prompt("请输入第"+(i+1)+"个数")
}
for(var a=0;a<10;a++){
for(var b=a+1;b<10;b++){
if(attr[a]<attr[b]){
var d=attr[a];
attr[a]=attr[b];
attr[b]=d;
}
}
}
for(var f in attr){
document.write(attr[f]+" ");
}
</script>
</body>
</html>