Flow Control

26
1734 reads

February 17, 2013

Jump Statements


The jump statements unconditionally transfer program control within a function. C++ has four statements that perform an unconditionally branch : return, goto, break, and continue.

347
2924 reads

February 17, 2013

Selection Statements


The operational flow of control of a program is altered depending upon a condition, by using selection statements. They are namely, if-statement, if-else-if ladder, ?

133
1653 reads

February 15, 2013

Type Of Triangle


This example shows use of if-elif-else in solving difficult decision problems.

132
2467 reads

February 15, 2013

Max Of Three


This example illustrates how to use if-elif-else condition.

274
2302 reads

February 15, 2013

Checking a Condition


This example illustrates how to check any and every element of a list. If the condition is not satisfied by any element,the LIST COMPREHENSION will create an empty list.

55
2329 reads

February 12, 2013

Month from Number Using SwitchCase


The program below takes input from the user and displays the month according to the inputted number by the user.

53
2428 reads

February 12, 2013

LetterGrade


The program below demonstrates the flow control of the given score of 92

37
1246 reads

February 12, 2013

Continue Statement


This example illustrates the use of the continue statement.

33
1304 reads

February 12, 2013

pass statement


This example illustrates the use of the pass statement.

30
1367 reads

February 12, 2013

if else


This example shows the if and else statements and its working.