shell 编程 从0到10求和 ,代码有错

shell 编程 从0到10求和 ,代码有错,请高手看看
#!/bin/sh
result=0
  i=0
    while   [   $i   -le   100   ];do
    result=$(($result+$i))
      i=$(($i   +   1))

    echo   "result   =   $result;   "
    done

shell   编程   从0到10求和   ,代码有错,请高手看看
提示   while   有错


#!/bin/sh
result=0
i=0
while [ $i -le 100 ];do
result=$(($result+$i))
i=$(($i + 1))

echo "result = $result; "
done
=========================
net err???


没有错呀!

shell 编程 从0到10求和 ,代码有错

相关文章:

你感兴趣的文章:

标签云: