Note: Control statements help us to get the control over flow of execution of a code.
Note: We can solve any real world problem by writing a program containing four programming language statements: sequential, conditional, control transfer and iterative statements.
0. Sequential statements: don’t break the normal flow of execution of code
Ex: variable declarations, assignment statements etc.
3 types of control statements:
1. Conditional / selection: execute code based the result of a condition
else if ladder,
2. Jumping / control transfer: make the control to jump/ transfer directly from one place to another
3. Looping / Iterative: execute set of statements repeatedly
Follow the link for next video:
Follow the link for previous video: