<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=window-1251">
</head>
<body>
<script language="javascript">
array=[]
for (i=0; i<5; i++) {
array.push(+prompt ("Введите число"))
}
delete(i)
document.write (array.sort(function(a, b){return b-a}).join(" "));
</script>
</body>
</html>