摘要: #!/bin/bash s=0 for ((i=1;i<=100;i=i+1)) do ((s=$s+$i)) done echo $s if [ $s -eq 5050 ] then echo "right" else echo "wrong" fi i=0 s=0 while [ $i -le 阅读全文
posted @ 2012-07-08 20:26 Dsp Tian 阅读(599) 评论(0) 推荐(0) 编辑