当前位置:网站首页>JS, and output from small to large
JS, and output from small to large
2022-06-27 07:35:00 【I am the sun?】
Code :
<!-- There is a keyboard to input three integers, which are a,b,c;
Sort them out , And output from small to large -->
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Document</title>
<script type="text/javascript">
var a,b,c;
// prompt The return value of string type , Turn to number Types are easy to compare
a = +prompt(" Please enter the first value : ");
b = +prompt(" Please enter the second value : ");
c = +prompt(" Please enter the third value : ");
if(a>b){
if(b>c){
alert(" From small to large :"+ c +" "+ b +" " + a);
}
else{
alert(" From small to large :"+ b +" "+ a +" "+ c);
}
}else{
if(b<c){
alert(" From small to large :" + a +" " + b + " " + c);
}else{
alert(" From small to large :"+ a + " " + c + " " + b);
}
}
</script>
</head>
<body>
</body>
</html>
Running results :



边栏推荐
- The first part of the construction of the defense system of attack and defense exercise is the introduction and the four stages of Defense
- Origin of forward slash and backslash
- 高薪程序员&面试题精讲系列116之Redis缓存如何实现?怎么发现热key?缓存时可能存在哪些问题?
- 请问网页按钮怎么绑定sql语句呀
- Visual studio vs shortcut key usage
- Get the query parameter in the address URL specify the parameter method
- R 语言Analyzing wine data
- hutool对称加密
- oracle的similarity方法实现原理
- VNC Viewer方式的远程连接树莓派
猜你喜欢

Memory barrier store buffer, invalid queue
![[compilation principles] review outline of compilation principles of Shandong University](/img/a6/b522a728ff21085411e7452f95872a.png)
[compilation principles] review outline of compilation principles of Shandong University
![log4j:WARN No such property [zipPermission] in org.apache.log4j.RollingFileAppender.](/img/2c/425993cef31dd4c786f9cc5ff081ef.png)
log4j:WARN No such property [zipPermission] in org.apache.log4j.RollingFileAppender.

磁选机是什么?

Process termination (have you really learned recursion? Test your recursion Foundation)

使用 Blackbox Exporter 测试网络连通性

How to write controller layer code gracefully?

js用switch语句根据1-7输出对应英文星期几

YOLOv6又快又准的目标检测框架 已开源

Win10 remote connection to ECS
随机推荐
Park and unpark in unsafe
攻防演习防御体系构建之第二篇之应对攻击的常用策略
POI export excle
The song of cactus -- throwing stones to ask the way (1)
Yarn create vite reports an error 'd:\program' which is neither an internal or external command nor a runnable program or batch file
移动安全工具-jad
请问如何将数据从oracle导入fastDFS?
R language analyzing wine data
【Kevin三连弹之三】Rust真的比C慢吗?进一步分析queen微测评
webscoket 数据库监听
什么是浮选机?
使用 Blackbox Exporter 测试网络连通性
IDEA连接数据库报错
ggplot2的自定义调色板
Cookie encryption 7 fidder analysis phase
用XGBoost迭代读取数据集
JDBC parameterized query example
apifox学习
How torch. gather works
pytorch Default process group is not initialized