Guest User

Untitled

a guest
Feb 13th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. for x1 in (0,1):
  2. for x2 in (0,1):
  3. a11=(x1+x2)>0.5
  4. a12=(-x1-x2)>-1.5
  5. a21 = (a11+a12)>1.5
  6. print(x1,' xor ',x2,' = ',a21)
Add Comment
Please, Sign In to add comment