The script prompts the user to enter four lines.
How about this
for i in 1 2 3 4
do
read -p "Enter line $i: " line[$i]
done
for i in 1 2 3 4
do
echo "Line $i was: " ${line}
done
Depending on your shell you may be able to use {1..4}
in place of 1 2 3 4