Math Fundamentals18 sections · 814 units
Open in Course

What is a Variable?

Representing unknowns

A variable is a symbol that represents a number you don't know yet. You use letters like xx, nn, or kk to stand in for values.

For example, if you have x+5=12x + 5 = 12, the variable xx represents some number that makes this equation true. Your job is to find what xx equals.

In programming, variables are everywhere. Array length nn, loop counter ii, time complexity T(n)T(n). Algebra teaches you how to work with these symbols before you know their values.