Example
if ( value == 0 )
{
printf (“The value you entered was zero\n”);
}
else if ( value < 0 )
{
printf (“%d is negative.\n”, value);
}
else
{
printf (“%d is positive.\n”, value);
}
Previous slide
Next slide
Back to first slide
View graphic version