A Problem in Logic (42)

18 Name: #!/usr/bin/anonymous : 2008-05-05 00:10 ID:Heaven

>>17
Your definition doesn't really make sense to me:

(((a & b & c) | b | c) == a)

Since a, b, and c are integers, and | is a logical operator,

(((a & b & c) | b | c) 

will always evaluate to TRUE unless a, b, and c are all 0.

here is what tD() would look like in C:

bool tD( int a, int b, int c )
{
return !( (a == b) || (b == c) || (a == c) )
}
This thread has been closed. You cannot post in this thread any longer.