num=1totalnum=0while [ $num -le 100 ]do ((totalnum=$totalnum+$num)) ((num=$num+1))doneecho "Total munber= $totalnum"
#/bin/shi=1sum=0while [ i le 100 ]do sum=sum+1 i=i+1 doneecho "the sum is $sum "