Math, asked by VishnuHelper, 3 days ago

If -1/3 is between 0 and -1 ,then -1/6 may be between​

Answers

Answered by sunitharaghavan29
0

Answer:

Condition tests using the if/then construct may be nested. The net result is equivalent to using the && compound comparison operator.

a=3

if [ "$a" -gt 0 ]

then

if [ "$a" -lt 5 ]

then

echo "The value of \"a\" lies somewhere between 0 and 5."

fi

fi

# Same result as:

if [ "$a" -gt 0 ] && [ "$a" -lt 5 ]

then

echo "The value of \"a\" lies somewhere between 0 and 5."

fi

Example 37-4 and Example 17-11 demonstrate nested if/then condition tests.

Prev Home Next

Other Comparison Operators Up Testing Your Knowledge of Tests

Similar questions