Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started