UMBC CMSC 201 Fall '07 CSEE | 201 | 201 F'07 | lectures | news | help |

- relational operators: >, <, >=, <=, ==, !=
- logical operators: !, &&, ||

P | Q | P && Q |
---|---|---|

FALSE | FALSE | FALSE |

FALSE | TRUE | FALSE |

TRUE | FALSE | FALSE |

TRUE | TRUE | TRUE |

p | Q | P || Q |
---|---|---|

FALSE | FALSE | FALSE |

FALSE | TRUE | TRUE |

TRUE | FALSE | TRUE |

TRUE | TRUE | TRUE |

P | ! P |
---|---|

FALSE | TRUE |

TRUE | FALSE |

CSEE | 201 | 201 F'07 | lectures | news | help