/* PC June 18, 2007
   Testing logical operators
*/

#include <stdio.h>

int main()
{
  int i = 1 && 1;
  printf("%d\n", 1 && 1);
  printf("%d\n", 0 && 1);
  printf("%d\n", 0 || 1);
  printf("%d\n", (1 || 1) && !(1 && 1));
  printf("%d\n", (1 || 0) && !(1 && 0));
  int x = 5;
  int y = 7;
  printf("%d\n", (x < y || y == x) && !(x < y && y == x));

  return 0;
}
