Skip to content

solve the all programs in excerise of chapter 3 of book "Robert Lafore" (4Th edition)

Notifications You must be signed in to change notification settings

Fatima-progmmer/Loops-and-decisions-statement-in-c-

Repository files navigation

📌 Loops and Decision Statements in C

Welcome to the Loops and Decisions Statement in C repository! This repository contains C programs demonstrating different types of loops and decision-making statements, essential for control flow in C programming.


📖 About

This repository provides examples of:
Loops: for, while, do-while
Decision Statements: if-else, switch-case
Nested Loops & Conditional Statements

🛠 Topics Covered

🔁 Loops in C

1️⃣ For Loop – Used for a known number of iterations.
2️⃣ While Loop – Repeats until a condition becomes false.
3️⃣ Do-While Loop – Executes at least once before checking the condition.

🔄 Nested Loops

✔ Using one loop inside another to handle patterns and complex iterations.

Decision-Making Statements

If-Else – Executes a block of code based on conditions.
Switch-Case – Replaces multiple if-else for better readability.
Ternary Operator – A shorthand for simple conditional expressions.


🚀 How to Run the Programs

1️⃣ Clone the Repository

git clone https://github.com/Fatima-progmmer/Loops-and-decisions-statement-in-c-

2️⃣ Navigate to the Folder

cd Loops-and-decisions-statement-in-c

Contributing

Feel free to contribute by improving code, adding comments, or sharing optimized versions.

  1. Fork the repository
  2. Make changes and commit
  3. Submit a pull request 🚀

📬 Connect with Me

🔗 GitHub
🔗 LinkedIn


About

solve the all programs in excerise of chapter 3 of book "Robert Lafore" (4Th edition)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published