Current location - Training Enrollment Network - Mathematics courses - Find the value of expression in VB
Find the value of expression in VB
Let me explain first: the results of relational operators and logical operators are boolean values. In vb, non-0 is Boolean true and 0 is Boolean false. Boolean true expression is 1 and false expression is 0.

1 、( a*b)-{c

mod{? \[(2^a)/b]}}

There should be another value at the question mark, or there is no \ ".

2、3 & gt2)>; 1

3>2 is true, that is, 1. So this expression is false or 0.

3. no

(a+b+c- 1)]

and

[b+(c/2)]

This expression is translated into: not 1 1 (calculation) and 6.5 (calculation), and the result is "not 1 1", that is, false or 0.

4、(5

modern

2)

eqv

{(No.

3)

XOR operation

[(5-3)>0]}

This expression is translated as: 1.

eqv

(

XOR operation

1

); True or 1.