Answers

Question and Answer:

  Home  Linux Bash Arithmetic Expressions

⟩ 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

a) It is greater than 1000

 185 views

More Questions for you: