Introduction
Imagine trying to bake a cake without clear instructions. You might forget steps or add ingredients in the wrong order. Algorithms solve this problem by giving clear, step-by-step instructions to solve problems reliably.
Jump into concepts and practice - no test required
Think of assembling a piece of furniture using an instruction manual. The manual lists each step in order, showing you exactly what to do next so the furniture comes together correctly.
┌─────────────┐
│ Start │
└─────┬───────┘
│
┌─────▼───────┐
│ Step 1: Do A│
└─────┬───────┘
│
┌─────▼───────┐
│ Step 2: Do B│
└─────┬───────┘
│
┌─────▼───────┐
│ Step 3: Do C│
└─────┬───────┘
│
┌─────▼───────┐
│ End │
└─────────────┘Step 1: Take number A = 3
Step 2: Take number B = 5
Step 3: Add A and B
Step 4: Output the result
Step 1: Input numbers X and Y
Step 2: If X > Y, print X
Step 3: If Y > X, print Y
Step 4: End