Examveda
Examveda

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

Answer: Option A


This Question Belongs to Computer Science >> Linux

Join The Discussion

Related Questions on Linux