Linux Bash Arithmetic Expressions Question: Download Questions PDF
How can you come out of the loop in this program?
#!/bin/bash
read x
while [ $x != "hello" ]
do
echo "Try to come out of the loop"
read x
done
echo "Welcome"
exit 0
a) by entering "hello"
b) by entering anything except "hello"
c) it is not possible
d) none of the mentioned
![Linux Bash Arithmetic Expressions Interview Answer Linux Bash Arithmetic Expressions Interview Question](https://globalguideline.com/public/images/interview/10.png)
Answer:
a) by entering "hello"
Download Linux Bash Arithmetic Expressions Interview Questions And Answers
PDF