Math Fundamentals18 sections · 814 units
Open in Course

Basic Operations

Addition through division

You already know addition (++), subtraction (-), multiplication (×\times), and division (÷\div). These four operations form the foundation.

Most programming languages use ++, -, *, and // symbols. For example, 7+3=107 + 3 = 10, 73=47 - 3 = 4, 7×3=217 \times 3 = 21, and 7÷3=2.333...7 \div 3 = 2.333...

But division has a twist. Sometimes you want the decimal result, sometimes just the whole number part. That difference matters for array indexing, splitting items into groups, and countless other tasks.