int main(int a, int b, int c, int d)
{
  int e = (a & ~b) & (~c & d);
  int f = (~c & a) & (b & ~d);
 return (e & f);
}


syntax highlighted by Code2HTML, v. 0.9.1