Computer Programming Math Operators

By: Cono Petrizzo

Basic Math Operators

These are some basic math operators:

—Addition (+)

intNumber = num1 + num2

—Subtraction (-)

intNumber = num1 - 50

—Multiplication (*)

intNumber = num1 * num2

Division (/)

intNumber = 51 / num2

—Exponents (^)

intNumber = 5^3 ‘5 cubed

Different Divisions

Operators of Operations

PEMDAS

Parentheses

Exponents

Multiply

Divide

Add

Subtract