#include <stdlib.h> //needed this to get definition of true
#include <stdio.h>
int main (int argc, const char * argv[])
{
int hasCar, hasTimeToGiveRide;
int nothingElseOn, newEpisode, itsARerun;
hasCar = true;
hasTimeToGiveRide = true;
if ( hasCar && hasTimeToGiveRide )
printf( "Hop in - I'll give you a ride!\n" );
else
printf( "I've either got no car, no time, or both!\n" );
nothingElseOn = true;
newEpisode = true;
if ( newEpisode || nothingElseOn )
printf( "Let's watch Star Trek!\n" );
else
printf( "Something else is on or I've seen this one.\n" );
nothingElseOn = true;
itsARerun = true;
if ( nothingElseOn || (! itsARerun) )
printf( "Let's watch Star Trek!\n" );
else
printf( "Something else is on or I've seen this one.\n" );
return 0;
}