摘要: 1. 计算 100 以内所有能被 3 整除的整数之和 脚本如下: #!/bin/bash i=1 while [ $i -le 100 ];do if [ $[ $i%3 ] -eq 0 ];then let n+=i fi let i++ done echo "$n" 结果如图: 2. 编写脚本, 阅读全文
posted @ 2020-06-21 17:26 ldyaly 阅读(267) 评论(0) 推荐(0) 编辑