Let say user choose 5 (antall).I want then to print 5+6+7+8+4 (for instans).In my script i get this print:5+6+7+8+4**+**How to get rid of the last +??(I have tried echo + in a for loop, but havent manage to get i right)My script:plusse () {while true; dorandom=0summit=0read -p Hvor mange tall vil du plusse>>  antallecho Hva er?  for (( i=1; i<=$antall; i++ )); dorandom=$(( RANDOM % 10 ))summit=$(( summit + $random ))echo -n $random     echo -n +doneechoread -p Svaret mitt er>>  svarrecho $summit    if [[ $svarr == $summit ]]; then        echo Gratulerer! $svarr er riktig svar!         read -p Vil du fortsette?>>  fortsette            case $fortsette in                ja|j|JA|Ja|y|Yes)   continue                                     ;;                nei|n|Nei|n|N)      break 1                                    ;;                *)                  exit 1                                    ;;            esac    else        echo Beklager, $svarr er feil. Riktig svar er $summit        read -p Vil du fortsette?>>  fortsette            case $fortsette in                ja|j|JA|Ja|y|Yes)   continue                                    ;;                nei|n|Nei|n|N)      break 1                                    ;;                *)                  exit 1                                    ;;            esac    fidone}
Different number of strings (for loops
bash;shell script