I hope this presentation will be help for engineering students are studying computer science or information technology.
This presentation is about control statements
If
If else
Nested if
If else if ladder
2. What is a Control Statements?
Control statements are used to control the
flow of a program
• Types
– If Statement
– If…else Statement
– Nested if Statement
– If-else-if ladder Statement
3. IF
• If the condition is true then the block of code
will be excecuted.
12. If-else-if ladder
• if is true, the statement associated with that if is
executed, and the rest of the ladder is bypassed. If
none of the conditions is true, then the final else
statement will be executed.