2. Programming Paradigms

2.2. The core principles of procedural programming include:

1. Sequence: The execution of code occurs in a linear sequence, one instruction after another.

2. Modularity: The program is broken down into functions or procedures that are responsible for specific tasks, promoting code reusability.

3. Local Variables: Variables are often declared within the scope of functions and are used to store temporary data during execution.

4. Control Flow: Structured control statements, such as if-else conditions, loops, and case-switch statements, determine the program’s flow of execution.

Abstraction: Functions provide abstraction by hiding the details of complex tasks and exposing only essential operations.