x=0
for i in 1 2 3 4 5 6 7 8 9 10
do
    x=`expr $x + $i`
    echo total so far is $x
done
echo first example: final total is $x
