当前位置:网站首页>JS find the number of all daffodils
JS find the number of all daffodils
2022-06-27 07:35:00 【I am the sun?】
Code :
<!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>js Count all daffodils </title>
<script type="text/javascript">
for(var i = 100;i <= 999;i++){
// bits
var a = i % 10;
// ten , because / Accounting to the decimal point , So round it up
var b = parseInt(i% 100 / 10);
// Hundred bit ditto , It is also because / , So round it up
var c =parseInt(i / 100);
if((a*a*a + b*b*b + c*c*c) ==i)
console.log(a + "*" + a + "*" + a + "+"+ b + "*" + b + "*" + b +"+"+ c + "*" + c + "*" + c +"=" + i);
}
</script>
</head>
<body>
</body>
</html>
Running results :
Call up the console , Just like this :
边栏推荐
- Yolov6's fast and accurate target detection framework is open source
- 语音信号特征提取流程:输入语音信号-分帧、预加重、加窗、FFT->STFT谱(包括幅度、相位)-对复数取平方值->幅度谱-Mel滤波->梅尔谱-取对数->对数梅尔谱-DCT->FBank->MFCC
- PostgreSQL encounters permission denied in Windows system
- 语音合成:Tacotron详解【端到端语音合成模型】【与传统语音合成相比,它没有复杂的语音学和声学特征模块,而是仅用<文本序列,语音声谱>配对数据集对神经网络进行训练,因此简化了很多流程】
- 通过uview让tabbar根据权限显示相应数量的tabbar
- How can the flower e-commerce 2.0 era go after the breakthrough from 0 to 1?
- 再见了,敏捷Scrum
- jupyter notebook文件目录
- 1-4 进制表示与转换
- guava 教程收集一些案例慢慢写 google工具类
猜你喜欢
随机推荐
突破从0到1后,鲜花电商2.0时代怎么走?
R 语言并行计算 spearman 相关系数,加快共现网络(co- occurrence network)构建速度
请问如何在网页通过excel文件的形式向后段数据库添加数据
What is the difference between volatile and synchronized?
Get the query parameter in the address URL specify the parameter method
JDBC参数化查询示例
RNA SEQ data analysis in R - investigate differentially expressed genes in the data!
hutool对称加密
Guava tutorial collect some cases and write Google tool classes slowly
boundvalueops和opsforvalue区别
通过uview让tabbar根据权限显示相应数量的tabbar
Sword finger offer 07 Rebuild binary tree
yarn create vite 报错 ‘D:\Program‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件
Apifox learning
R 语言 基于关联规则与聚类分析的消费行为统计
一个人管理1000台服务器?这款自动化运维工具一定要掌握
Vs how to configure opencv? 2022vs configuration opencv details (multiple pictures)
js求所有水仙花数
Bean copy details
oracle的similarity方法实现原理









