Vidyalelo
Computer Science · Q955

Linux

Engineering and GATE · Computer Science · question 955

Q955

After running this program, if you enter 1000, then what will be the output of the program? #!/bin/bash echo "Please enter a number" read a if [ a -lt 100 ]; then echo "It is less than 100"; elif [ a -lt 1000 ]; then echo "It is less than 1000" else echo "It is greater than 1000" fi exit 0

A.
It is greater than 1000
Answer
B.
It is less then 1000
C.
It is equal to 1000
D.
None of then mentioned

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board