! /bin/bash read -p"enter numbers" read -a n sum=0 for n ln 'seq $n[0]; do sum =$((sum+n)) done echo "sum is: $sum"