Current location - Training Enrollment Network - Mathematics courses - VB expression
VB expression
1, the priority of arithmetic operators in VB is:

^

,

-

(negative),

*

,

/

,

\

,

Ministry of Defence; Modern youth

,

+

,

-(subtraction).

So the mathematical expression should be:

1 1+[4 1

modern

(9^2\2^2)]+ 12+{5^2

modern

[(23*3)\(73/2^3)]}+ 1

The result is 29.

2. The priority order of various operations of expressions in 2.VB is:

Parentheses-Functions-Arithmetic Operators-Character Conjunction Operators-Relational Operators-Logical Operators

So this formula first calculates the int(-2 1.6) of the function class.

)

(take the largest integer not greater than -2 1.6, that is, take the left), that is, -22, and then do the divisible operation (-22)\4.

The result is -5.