Skip to main content

Posts

Showing posts with the label class 10 Chapter :- 13 Decision Structures

ads1

class 10 Chapter :- 13 Decision Structures

 Decision Structures Decision structure statements help us to jump from one part of the program to another part of program based on result of some conditions. Sometimes decision structure statements are also known as selective structures statements, branching statements or decision making statements. C language provides two basic types of decision structure statements: if and switch. The if Statement The if statement is one of the powerful decision making statement which can be used to transfer control of instruction execution. The if statement can be used in following different ways: Simple if statement if-else statement nested if statement and else-if ladder statement Simple if statement :- The simplest form of the decision structure statement is the if statement. It is frequently used in the program for decision making and allowing us to change the flow of program execution Nested if...else statement There are situations where we need to execute series of decisions in our program.

ads2