Examveda

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

B. It is less then 1000

C. It is equal to 1000

D. None of then mentioned

Answer: Option A


This Question Belongs to Computer Science >> Linux

Join The Discussion

Related Questions on Linux