var attr = Array();
for (var i = 0; i < n; i++;)
{
attr [i] = pormpt ("请输入第"+(i+1)+"个数")
}
for (var a = 0; a < n; a++)
{
for (var j = a+1; j < n; j++)
{
if (attr[a] < attr[j])
{
var b = attr[a];
attr[a] = attr[j];
attr[a] = b;
}
}
}
for (var c in attr)
{
document.write(attr[c]+"")
}