Ask Question

If you are asked to determine if a value is inside a certain range of values like the age of someone who is a teenager, what Boolean operator should you use for your VBScript conditional expression?

+1
Answers (1)
  1. 26 June, 09:48
    0
    To determine if a value is between range of values like age between 12 and 19, you will use a combination of relational and logical operators. consider the example in the explanation section.

    Explanation:

    In Visual Basic programming Language, given an integer age; we can write the expression this way

    if age>12 And age<=19 Then

    Console. WriteLine ("You are a teenager")

    Else

    Console. WriteLine ("You are not a Teemnager")

    End If
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “If you are asked to determine if a value is inside a certain range of values like the age of someone who is a teenager, what Boolean ...” in 📗 Computers & Technology 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