Pseudocode
Language‑agnostic structured outline of an algorithm.
algorithmdesignbasicsUpdated 2025-09-01
Purpose
- Communicate logic without syntax noise.
Conventions
- FOR i FROM 1 TO n
- IF condition THEN
- FUNCTION name(params)
Example: Sum 1..n
- FUNCTION sum(n)
- total ← 0
- FOR i ← 1 TO n DO
- total ← total + i
- RETURN total