shell - 算青蛙的脚本
算青蛙的脚本
2004-04-23 15:18 pm来自:Linux文档
现载:Www.8s8s.coM
地址:无名
maxcount=$1;
count=1;
if [ $# -eq 1 ]
then
while [ $count -le $maxcount ]
do echo $count 只青蛙 $count 张嘴, `expr $count * 2`只眼睛,`expr $count * 4`条腿;
count=`expr $count + 1`;
done;
else
echo "usage: sendos count"
fi