Ask Question
2 September, 15:20

If the intquantity and decprice variables contain the numbers 3 and 15.75, respectively, the condition if intquantity > 0 andalso intquantity 20 will evaluate to

+2
Answers (1)
  1. 2 September, 15:29
    0
    if intquantity > 0 andalso intquantity 20

    expression evaluates to

    (3>0 and 15.7520)

    which, using priority of operations, "and" has a higher precedence than "or",

    =>

    ((3>0 and 15.7520)

    =>

    (false or false)

    =>

    false
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “If the intquantity and decprice variables contain the numbers 3 and 15.75, respectively, the condition if intquantity > 0 andalso ...” in 📗 Mathematics if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers