<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script src="./ch11-2.js"></script>
</body>
</html>
var num1 = prompt('请输入第一个数')*1;
var num2 = prompt('请输入第二个数')*1;
function a (num1,num2){
var NUM = (num1 + num2)/2;
return NUM
}
var c = a (num1,num2)
function sort(num1, num2) {
return num1<num2 ? num1:num2
}
var d = sort(num1, num2)
function sort2(d , c) {
return d<c ? d:c
}
var e = sort2(d,c);
var i;
for(i=1;i<=100;i++){
document.write (e);
i++;
}