🔹 1. Definition

👉 Flowchart ek diagrammatic representation of an algorithm hota hai jo problem ke steps ko shapes + arrows ki help se dichasia hai.


🔹 2. Flowchart Symbols

Symbol Name Use
⭕ Oval Start / End Program ki beginning & termination
▭ Rectangle Process Calculation / Task (e.g., sum = sum+1)
⬜ Parallelogram Input / Output Data lena ya print karna
🔷 Diamond Decision Condition check (Yes/No branch)
→ Arrow Flow Line Flow of control show karta hai

🔹 3. Characteristics of Flowcharts

  1. Steps sequential aur clear hote hain.
  2. Logic ko visualize karna easy ho jaata hai.
  3. Errors aur bugs detect karna easy.
  4. Har programming language ke liye useful (language independent).

🔹 4. Examples

1️⃣ Find Largest of Two Numbers

   ⭕ Start
     ↓
  ⬜ Input a, b
     ↓
 🔷 Is a > b?
  /     \
Yes       No
 |         |
▭ Output a  ▭ Output b
     ↓
   ⭕ Stop


2️⃣ Sum of First N Natural Numbers

   ⭕ Start
     ↓
  ⬜ Input n
     ↓
▭ sum = 0, i = 1
     ↓
 🔷 Is i ≤ n?
  /     \
Yes       No
 |         |
▭ sum = sum + i   |
▭ i = i + 1       |
  \_______________|
     ↓
 ⬜ Output sum
     ↓
   ⭕ Stop