Computer Science, asked by pradeepbabita101, 1 month ago

explain the use of branching statement in small bases with the help of an example​

Answers

Answered by Ristar
5

Answer:

☀︎︎ANSWER☀︎︎

Branching statements allow the flow of execution to jump to a different part of the program. The common branching statements used within other control structures include: break, continue, return, and goto. The goto is rarely used in modular structured programming. Additionally, we will add to our list of branching items a pre-defined function commonly used in programming languages of: exit

Examples

break

The break is used in one of two ways; with a switch to make it act like a case structure or as part of a looping process to break out of the loop. The following gives the appearance that the loop will execute 8 times, but the break statement causes it to stop during the fifth iteration.

Answered by BurnleyandChelsea
1

Answer:

The Branching statements allow the flow of execution to jump to a different part of the program. The common branching statements used within other control structure are Goto and Goto with Else statement

Similar questions