Decision making statements

These statements are used to control the flow of execution of a program by making a decision depending on a condition, hence they are named as decision making statements. Decision making statements are of four types. Simple if if else nested if else If else ladder 1. Simple if Statement if the test expression is true then if statement executes statements that immediately follow if Syntax: Example: 2. if-else Statement If test expression is true block of statements following if are executed and if test expression is false then statements…

Read More