返回顶部
摘要: #Shell循环练习题 ##1.计算从1到100所有整数的和 #!/bin/bash #for for (( a=1; a<=100; a++ )) do sum=$[$sum + $a] done echo "for:1到100的所有整数的和为 $sum" #while b=1 while [ $ 阅读全文
posted @ 2020-11-29 01:13 丨君丶陌 阅读(399) 评论(0) 推荐(0) 编辑