Mathematical expressions are fundamental in programming. An expression consists of a value, a variable, an operator, or a procedure call that returns a value. Expressions are evaluated to produce a single result, which can then be used in further calculations or stored in a variable.
Back to Big Idea 3: Algorithms & Programming
Lesson PreviewLesson 3 of 18 in this unit
3.3 Mathematical Expressions in Programming
Part of Big Idea 3: Algorithms & Programming in AP® Computer Science Principles. Read the opening section, then create a free account for the full interactive lesson, practice, and progress tracking.
In this unit
18 lessons
- 3.1Variables and AssignmentsPreview lesson
- 3.2Data AbstractionPreview lesson
- 3.3Mathematical Expressions in ProgrammingThis lesson
- 3.4StringsPreview lesson
- 3.5Boolean ExpressionsPreview lesson
- 3.6ConditionalsPreview lesson
- 3.7Nested ConditionalsPreview lesson
- 3.8IterationPreview lesson
- 3.9Developing AlgorithmsPreview lesson
- 3.10ListsPreview lesson
- 3.11Binary SearchPreview lesson
- 3.12Calling ProceduresPreview lesson
- 3.13Developing ProceduresPreview lesson
- 3.14LibrariesPreview lesson
- 3.15Random ValuesPreview lesson
- 3.16SimulationsPreview lesson
- 3.17Algorithmic EfficiencyPreview lesson
- 3.18Undecidable ProblemsPreview lesson
Continue the full lesson in Stellar
Create a free account to unlock the remaining sections, checkpoints, course practice, and progress tracking for AP® Computer Science Principles.