标签:linux
#!/bin/bash
#
declare -i sum=0
for I in {1..100}; do
sum+=$I
done
echo $sum
for I in `seq 1 100`; do
sum+=$I
done
echo $sum
本文出自 “www.aboboo520.com” 博客,请务必保留此出处http://aboboo520.blog.51cto.com/11330424/1883220
标签:linux
原文地址:http://aboboo520.blog.51cto.com/11330424/1883220