Learn Bash Scripting by Building Five Programs

Learn Bash Scripting by Building Five Programs

After your read command, use your new variable to print the next question.

  1. Use echo to print the variable

  2. Add echo $QUESTION2 below your read command

Your script should “echo” the suggested variable correctly

QUESTION1=“What’s your name?”
echo $QUESTION1
read NAME
echo Hello $NAME.
QUESTION2=“Where are you from?”
echo $QUESTION2
read LAND
echo $LAND

this is not advancing to the next task. what is needed here or what’s wrong here?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.