🔹 1. Definition
👉 Pseudocode ek informal high-level description hota hai jo algorithm ke steps ko likhta hai in a way that resembles programming language but without strict syntax.
- Matlab → Algorithm ka blueprint.
- Use → Programming language me convert karna easy ho jata hai.
🔹 2. Features of Pseudocode
- Simple & Understandable → Normal English + programming style.
- Language Independent → Kisi bhi programming language me convert ho sakta hai.
- Structured → Loops, conditions, input/output clearly likhe jaate hain.
- Step by Step → Sequential order me instructions.
🔹 3. Common Keywords / Syntax Style
- START / END → Algorithm ki beginning aur end.
- INPUT / OUTPUT → User se data lena / print karna.
- IF … THEN … ELSE → Condition check karna.
- FOR, WHILE, REPEAT UNTIL → Loops dikhane ke liye.
- ← (assignment arrow) → Value assign karna. (Example:
sum ← sum + 1)
🔹 4. Example Pseudocode
1️⃣ Largest of Two Numbers