i=0
while (( i < 10 ))
do
 (( squares[$i] = i * i ))  # assign individual element.
 (( i = i + 1 ))            # increment loop counter.
done
echo 5 squared is ${squares[5]}  # display one element.
echo list of all squares is ${squares[*]} # display all.
