‘if-else’ construct
Syntax:
if (expression)
statement1 ;
else
statement2 ;
if (expression)
{
compound-statement1 ;
}
else
{
compound- statement2 ;
}
Previous slide
Next slide
Back to first slide
View graphic version