2.1 Control statements in C programming (sequential & conditional)
Control statements in C: - C is a structure-orientated programming language; the statements that are used to control the flow of execution of a program are called control structures. The statements provide a specific order to execute the C program. In C programming, we have four types of control structures. Sequential control structures Conditional control structures Iterative control structures Jumping control structures 1) Sequential control structures: - The C program is a collection of instructions or set of statements which are executed sequentially in a user-specific order. No statement is slipped, and no statement is executed more than once. Syntax: - Flow chart: - Example: - Output: - 1) Conditional control structures: - It is also known as selection, branchi...