使用javascript编程求输入的三个数中最大数,并在页面打印出来
<!DOCTYPE html>
<html>
<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>求三个数中最大的数</title>
</head>
<body><script type="text/javascript">// 输入a,b,c三个数,比较三个数中最大的var a = parseInt(window.prompt('input'));var b = parseInt(window.prompt('input'));var c = parseInt(window.prompt('input'));if(a > b){if(a > c){document.write(a);}else{document.write(c);}}else{if(b > c){document.write(b);}else{document.write(c);}}</script></body>
</html>