When you want to plan a program or solve a problem, it’s easier to first write a simple visual or step-by-step outline. That’s where flowcharts and pseudocodes come in!

📝 What is a Flowchart?

A flowchart is a diagram that shows the sequence of steps to solve a problem or complete a task using different symbols.

It helps programmers and others visualize the logic before coding.

🔷 Common Flowchart Symbols:

Symbol Purpose Example
Oval Start or End of a program Start, Stop
Rectangle Process / Action (like calculations) Calculate total
Parallelogram Input or Output (e.g., read or display data) Input age, Print result
Diamond Decision / Condition (Yes/No) Is age > 18?
Arrow Flow of control (shows direction) Flow from one step to another

📊 Example Flowchart: Check if a number is even or odd

Reference: https://www.pinterest.com/pin/odd-even-flowchart--325314773082670565/

Reference: https://www.pinterest.com/pin/odd-even-flowchart--325314773082670565/

📝 What is Pseudocode?

Pseudocode is a plain English (or any language) way of writing the steps of a program without worrying about syntax. It looks like code but is easy to understand.

💡 Basic Pseudocode Rules:

📋 Example Pseudocode: Check if a number is even or odd