I have to submit a script which adds two values within an for loop and puts every result in an array. I put together a script (which is not working) but I cannot figure out how to get it started.
#!/bin/sh
val1=$1
val2=$2
for i in 10
do
${array[i]}='expr $val1+$val2'
$val1++
done
echo ${array[@]}