1、<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
</body>
</html>
<script type="text/javascript">
var x = prompt("请输入三个数字")
var y = prompt("请输入三个数字")
var z = prompt("请输入三个数字")
x = parseInt(x);
y = parseInt(y);
z = parseInt(z);
if(x<y&&y<z){
alert(x+","+y+","+z)
}
else if(x<z&&z<y){
alert(x+","+z+","+y)
}
else if(y<z&&z<x){
alert(y+","+z+","+x)
}
else if(y<x&&x<z){
alert(y+","+x+","+z)
}
else if(z<x&&x<y){
alert(z+","+x+","+y)
}
else if(z<y&&y<x){
alert(z+","+y+","+x)
}
</script>
2、
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
</body>
</html>
<script>
x=prompt("请输入姓名","")
y=prompt("请输入考试成绩“,”")
z="恭喜你"
a=",满分通过!"
b="你很优秀,继续保持!"
c="成绩良好"
d="就差一点点,下次一定要至少及格!"
e="你是笨蛋吗?"
if(y==100){
alert(z+x+a)
}
else if(y>=80&&y<100){
alert(x+b)
}
else if(y>=60&&y<80){
alert(x+c)
}
else if(y>=50&&y<60){
alert(x+d)
}
else if(y<50){
alert(x+e)
}
</script>
3、
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
</body>
</html>
<script>
a=prompt("你有房子吗?","")
x="有"
if(x==a){
alert("结婚吧")
}
else{
b=prompt("你有钱吗?","")
if(x==b){
alert("先买房子在结婚")
}
else{
c=prompt("你有能力么?“,”")
if(x==c){
alert("先赚钱再买房子再结婚")
}
else{
alert("拜拜~~")
}
}
}
</script>
4、
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
</body>
</html>
<script>
a=prompt("请输入性别“,”")
b=prompt("请输入身高“,”")
c=prompt("请输入体重”,“")
x="女"
y="男"
d=b-113
e=b-107
f=b-103
g=b-97
if(a==x){
if(c>=d&&c<=e){
alert("标准")
}
else{
alert("不标准")
}
}
else if(a==y){
if(c>=f&&c<=g){
alert("标准")
}
else{
alert("不标准")
}
}
</script>
5、
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
</body>
</html>
<script>
a=prompt("请输入a","")
b=prompt("请输入b","")
c=prompt("请输入c","")
a = parseInt(a);
b = parseInt(b);
c = parseInt(c);
d=-b
e=2*a
x=b*b-4*a*c
y=d/e
z=Math.sqrt(x)
f=d+z
g=d-z
h=f/e
i=g/e
if(x<0){
alert("无实根")
}
else{
if(x==0){
alert(y)
}
else{
if(x>0){
alert(h+","+i)
}
}
}
</script>