If, Example 2
Int code;
code = 1;
if ( code == 1 ) {
printf("CZ Courses\n");
printf("Dr Wang\n");
printf("Room 07-21\n");
}
printf("*** THE END ***");
the output is
CZ Courses
Dr Wang
Room 07-21
*** THE END ***
If code is set to 0, the first three lines
will not be printed.
Previous slide
Next slide
Back to first slide
View graphic version