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.
安裝cuda+cuDNN
2.
GitHub的使用說明
3.
phpDocumentor使用教程【安裝PHPDocumentor】
4.
yarn run build報錯Component is not found in path 「npm/taro-ui/dist/weapp/components/rate/index「
5.
精講Haproxy搭建Web集羣
6.
安全測試基礎之MySQL
7.
C/C++編程筆記:C語言中的複雜聲明分析,用實例帶你完全讀懂
8.
Python3教程(1)----搭建Python環境
9.
李宏毅機器學習課程筆記2:Classification、Logistic Regression、Brief Introduction of Deep Learning
10.
阿里雲ECS配置速記
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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循環
>>更多相關文章<<