Showing posts with label decision making. Show all posts
Showing posts with label decision making. Show all posts

Write down about the else if ladder

The else if ladder :

When a multipath decision is involved then we use else if ladder. A multipath decision is a chain of ifs in which the statement associated with each else is an if. It takes the following general form,



Write down about the nested if-else statement

Nested if...else statement:

When a series of decisions are involved, we may have to use more than one if-else statement in nested form as shown below,




Write down about the if-else statement




The if-else statement : The general form of the if....else statement is as follows,




Write down about the simple if statement





Simple if statement : The general form of a simple if statement is as follows,



Write down about the decision making statement if.




The if statement : The if statement is a powerful decision making statement and is used to control the flow of execution of statements. It is basically a two way decision-statement. It takes the following form,


What is decision making? What are the statements used in C for decision making purpose?




Decision making : In practice, users may have a number of situations where they may have to change the order of statements based on certain conditions. This is decision making. The decision making statements in C are as follows