Question: What does this script do? I am thinking its a guessing number game between 1 and 10? #!/bin/bash echo Enter any number between 0 and

What does this script do? I am thinking its a guessing number game between 1 and 10?

#!/bin/bash

echo "Enter any number between 0 and 10"

read n

while [ $n -ne 3 ]

do

if [ $n -lt 3 ]

then

echo "higher please"

else

echo "lower please"

fi

echo "enter a number between 0 and 10"

read n

done

echo "you won!"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!