ExamVeda
Login
Home
This question belongs to Computer Science Linux
Linux
?

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

Answer & Solution
Correct Answer: Option A
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.