I want to learn more about Visual basic 2015

Asked By 90 points N/A Posted on -

I want to go further with Visual Basic. What is operator in Visual basic? What are the arithmetic operators I can use in my programs? What is the meaning of “Order of Evaluation?” What do you mean by MOD? What is the use of this operator? Can you provide me also the descriptions of the arithmetic operators that I can use in my programs? Can you show me how to implement this operators and what are the proper uses of it?

Please help me with this.

Thank you!

Answered By 0 points N/A #165067

I want to learn more about Visual basic 2015


Hello Janet!

Operator is a symbol or expression that does arithmetic and data operation.  Here are the arithmetic operators that you can use in Visual Basic.

1. Addition – simple as adding 2 integers or more.

Example: sum = A + B

2. Subtraction – subtracting two numbers.

Example: answer = A – B

3. Multiplication – Numbers multiplied to another.

Example: answer = A * B

4. Division (float “/”) and Division (Integer “”)

Example: quotient = A B or quotient = A / B

5. Exponentiation – a number raised to the power of a number

Example: answer = A ^ B

6. Modulus – dividing 2 numbers and show only the remainder.

Example: answer = a Mod b

Order of evaluation is the same as MDAS (Multiplication-Division-Addition-Subtraction). This is how computer will compute the answer to sets of arithmetic operators and numbers. “MOD” or Modulus is an arithmetic operator that we can use that will only show the remainder of 2 numbers.

Login/Register to Answer

Related Questions