JavaShuo
栏目
标签
shell脚本-while循环从1加到100
时间 2020-02-08
标签
shell
脚本
循环
加到
栏目
Unix
繁體版
原文
原文链接
#!/bin/bash i=1 s=0 while [ $i -le 100 ] do s=$(( $s+$i )) i=$(( $i+1 )) done echo "The sum is: $s"
相关文章
1.
shell脚本实例-for循环从1加到100
2.
用while循环、do...while循环、for循环计算从1加到100的和
3.
shell for循环1到100
4.
shell脚本--------while循环语句
5.
55.shell脚本之while循环
6.
shell脚本(三)while循环语句
7.
shell while 循环
8.
shell脚本-循环
9.
用循环(for\while\do...while)打印1到100的整数加和
10.
Shell之while循环
更多相关文章...
•
Swift While 循环
-
Swift 教程
•
C# while 循环
-
C#教程
•
Kotlin学习(二)基本类型
•
Kotlin学习(一)基本语法
相关标签/搜索
shell脚本
循环
从头到脚
从0到1
shell脚本语法
shell脚本实例
脚本
1..100
1/100
100+1
Unix
PHP 7 新特性
Spring教程
PHP教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
springboot在一个项目中启动多个核心启动类
2.
Spring Boot日志-3 ------>SLF4J与别的框架整合
3.
SpringMVC-Maven(一)
4.
idea全局设置
5.
将word选择题转换成Excel
6.
myeclipse工程中library 和 web-inf下lib的区别
7.
Java入门——第一个Hello Word
8.
在chrome安装vue devtools(以及安装过程中出现的错误)
9.
Jacob线上部署及多项目部署问题处理
10.
1.初识nginx
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
shell脚本实例-for循环从1加到100
2.
用while循环、do...while循环、for循环计算从1加到100的和
3.
shell for循环1到100
4.
shell脚本--------while循环语句
5.
55.shell脚本之while循环
6.
shell脚本(三)while循环语句
7.
shell while 循环
8.
shell脚本-循环
9.
用循环(for\while\do...while)打印1到100的整数加和
10.
Shell之while循环
>>更多相关文章<<