C++ is one of the most versatile languages in the world. It is used nearly everywhere for everything… systems programming (operating systems, device drivers, database engines, embedded, Internet of Things, etc.)

Enter Header Image Headline Here

Saturday, 15 April 2017

C++ if...else

                                         C++ if...else 



The  if  else executes the codes inside the body of if the test expression is true and skip the expression is true and skips the codes inside the body of else.

if the test expression is false, it executes the codes inside the body of else statement and skip the codes inside the body of it.

How if...else statement works ? 



Flowchart of if...else
















Example :  if...else Statements













Output











This line is always printed.

0 comments:

Post a Comment

Popular Posts

Recent Posts

Categories

Unordered List

Text Widget