[solved] Question for using variables outside a while loop

I want to get newvar outside the while
any ideas?

while read myline; do
var=${myline}

newvar1=$(let "$var")

done

echo $newvar1

I found it its ok now Thank you!