#!/bin/bash s=0 for((i=1;i<=100;i=i+1)) do s=$(($s+$i)) done echo"Thesumof1+2+...+100is:$s"@H_403_1@ 原文链接:https://www.f2er.com/bash/392386.html
#!/bin/bash s=0 for((i=1;i<=100;i=i+1)) do s=$(($s+$i)) done echo"Thesumof1+2+...+100is:$s"@H_403_1@ 原文链接:https://www.f2er.com/bash/392386.html