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



边栏推荐
- [compilation principles] review outline of compilation principles of Shandong University
- 语音信号特征提取流程:输入语音信号-分帧、预加重、加窗、FFT->STFT谱(包括幅度、相位)-对复数取平方值->幅度谱-Mel滤波->梅尔谱-取对数->对数梅尔谱-DCT->FBank->MFCC
- window右键管理
- Use uview to enable tabbar to display the corresponding number of tabbars according to permissions
- 再见了,敏捷Scrum
- The first part of the construction of the defense system of attack and defense exercise is the introduction and the four stages of Defense
- hutool对称加密
- Error in idea connection database
- log4j:WARN No such property [zipPermission] in org.apache.log4j.RollingFileAppender.
- js输出1-100之间所有的质数并求总个数
猜你喜欢

再见了,敏捷Scrum

Interviewer: how to never migrate data and avoid hot issues by using sub database and sub table?

正斜杠反斜杠的由来

Cookie encryption 6

Park and unpark in unsafe

DMU software syntax highlighting VIM setting -- Learning Notes 6

The interviewer of a large front-line factory asked: do you really understand e-commerce order development?

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

【软件工程】山东大学软件工程复习提纲

yarn create vite 报错 ‘D:\Program‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件
随机推荐
js判断用户输入的数是否为质数(多种方法)
剑指 Offer 07. 重建二叉树
mysql关于自增和不能为空
【软件工程】山东大学软件工程复习提纲
一个人管理1000台服务器?这款自动化运维工具一定要掌握
Stream常用操作以及原理探索
hutool对称加密
vs怎么配置OpenCV?2022vs配置OpenCV详解(多图)
IDEA连接数据库报错
Process termination (have you really learned recursion? Test your recursion Foundation)
SQL考勤查询间隔一小时
js打印99乘法表
R 语言Analyzing wine data
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?
[leetcode] day90 the element with the smallest K in the binary search tree
将通讯录功能设置为数据库维护,增加用户名和密码
再见了,敏捷Scrum
apifox学习
移动安全工具-jad
JDBC读取Mysql数据列表