当前位置:网站首页>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 :



边栏推荐
- [leetcode] day90 the element with the smallest K in the binary search tree
- Window right click management
- YOLOv6又快又准的目标检测框架 已开源
- Stream常用操作以及原理探索
- How to implement redis cache of highly paid programmers & interview questions series 116? How do I find a hot key? What are the possible problems with caching?
- manim 数学引擎
- hutool对称加密
- js打印99乘法表
- JDBC reads MySQL data list
- Construction of defense system for attack and defense exercises part II common strategies for responding to attacks
猜你喜欢

How to write controller layer code gracefully?
![[graduation season] graduation is the new beginning of your life journey. Are you ready](/img/4e/aa763455da974d9576a31568fc6625.jpg)
[graduation season] graduation is the new beginning of your life journey. Are you ready

js中判断成绩是否合格,范围在0-100,否则重新输入

Solve the problem of win10 wsl2 IP change

Goodbye, agile Scrum

Cookie encryption 7 fidder analysis phase

进程终止(你真的学会递归了吗?考验你的递归基础)

MySQL

正斜杠反斜杠的由来

Interviewer: you use Lombok every day. What is its principle? I can't answer
随机推荐
Idea方法模板
Speech signal feature extraction process: input speech signal - framing, pre emphasis, windowing, fft- > STFT spectrum (including amplitude and phase) - square the complex number - > amplitude spectru
磁选机是什么?
JDBC operation MySQL example
移动安全工具-jad
R language analyzing wine data
Hutool symmetric encryption
How to download opencv? How to configure opencv after downloading?
程序人生 - 程序员三十五岁瓶颈你怎么看?
Coggle 30 Days of ML 7月竞赛学习
突破从0到1后,鲜花电商2.0时代怎么走?
用XGBoost迭代读取数据集
js中判断成绩是否合格,范围在0-100,否则重新输入
[openairinterface5g] rrcsetupcomplete for RRC NR resolution
Guava tutorial collect some cases and write Google tool classes slowly
Interviewer: do you have any plan to request a lot of data that does not exist in redis to destroy the database?
R language consumption behavior statistics based on association rules and cluster analysis
uview的安装和功能
在线文本数字识别列表求和工具
Self test in the second week of major 4