A structured, language-independent reference for fundamental programming concepts and introductory algorithms expressed in pseudocode.
This repository contains 11 topic-focused documents organized from basic program structure to conditions, loops, arrays, and algorithms.
Each document introduces a concept and demonstrates it through practical examples of increasing complexity. The notation focuses on program logic rather than the syntax of a specific programming language.
The planned learning scope is complete. The repository is maintained as a reference for designing algorithms, reviewing programming fundamentals, and translating logic into source code.
| Section | Documents | Coverage |
|---|---|---|
| 01 — Basics | Variables · Input and output · Operators | Assignment, reassignment, data values, user input, output, arithmetic, MOD, and DIV |
| 02 — Conditions | Conditions and logical operators · IF / ELSE · SWITCH / CASE | Comparisons, boolean logic, ranges, nested decisions, authentication checks, menus, and multi-case selection |
| 03 — Loops | FOR loops · WHILE loops | Counting, stepping, accumulation, validation, nested loops, list traversal, and repetition based on conditions |
| 04 — Arrays | Array examples | Indexing, mutation, length, traversal, aggregation, searching, reversing, user input, and nested arrays |
| 05 — Algorithms | Factorial · Prime numbers | Iterative and recursive factorials, prime validation, prime enumeration, and optimized divisor checks |
| Construct | Notation | Purpose |
|---|---|---|
| Program boundaries | START / END |
Define the beginning and end of a program |
| Assignment | SET name TO value |
Store or update a value |
| Input | INPUT name |
Read a value |
| Output | PRINT value |
Display a value |
| Conditional branch | IF / ELSE IF / ELSE |
Select a path based on conditions |
| Multi-case selection | SWITCH / CASE / DEFAULT |
Match one value against multiple options |
| Count-controlled loop | FOR / END FOR |
Repeat over a range or collection |
| Condition-controlled loop | WHILE / END WHILE |
Repeat while a condition remains true |
| Function | FUNCTION / RETURN |
Define reusable logic and return a result |
| Array operations | ADD, REMOVE, LENGTH |
Modify or inspect a collection |
| Numeric operations | MOD, DIV, SQRT |
Perform remainder, integer division, and square-root operations |
Keywords are written in uppercase, and indentation represents nested control-flow blocks.
START
SET numbers TO [10, 25, 7, 42, 18]
SET largest TO numbers[0]
FOR each number IN numbers
IF number > largest THEN
SET largest TO number
END IF
END FOR
PRINT "Largest number: " + largest
END
The same algorithm can be translated into Python, Java, C#, JavaScript, or another programming language without changing its underlying logic.
The material is ordered by topic and can be followed sequentially:
- Start with variables, input, output, and operators.
- Continue with conditional logic and selection.
- Study count-controlled and condition-controlled loops.
- Apply those concepts to arrays and collections.
- Review the factorial and prime-number algorithms.
The repository can also be cloned locally:
git clone https://github.com/ErkanSoftwareDeveloper/pseudocode-learning.git
cd pseudocode-learningNo installation, runtime, or external dependencies are required.
Pseudocode has no universal syntax. The notation used here intentionally prioritizes readability and consistency over language-specific rules.
The examples are designed to describe program behaviour and algorithmic flow. They are documentation and are not intended to be executed directly.