PPT Slide
The conditional statement
(if statement). Allows a choice of command based on some condition.
// Store the maximum of x,y in z
z= x;
if (y>x)
z:= y;
syntax: if ( <boolean expression> )
statement
Previous slide
Next slide
Back to first slide
View graphic version