Chapter 12 Complex Mathematical Expressions

12.1 Writing Complex Mathematical Expressions

In Section 7.2 you learned all about arithmetic operators but little about how to use them and how to write your own complex mathematical expressions. In this chapter, you are going to learn how easy is to convert mathematical expressions to Visual Basic statements.

Arithmetic operators follow the same precedence rules as in mathematics, which means that exponentiation is performed first, multiplication and division are performed next, and addition and subtraction are performed last. Moreover, when multiplication and division co-exist in the same expression, ...

Get Visual Basic and Algorithmic Thinking for the Complete Beginner now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.