Code
#! /bin/bash
read -p "INterest " interest
read -p "Enter loan " loan
tot(){
total=$( bc -l <<EOF
scale=3
$loan + $interest^3
EOF
)
echo "$total"
}
tot
output INterest 12 Enter loan 12 ./eofp.sh: line 6: unexpected EOF while looking for matching `)' ./eofp.sh: line 15: syntax error: unexpected end of file