OIT/Практическая 3/3.py
2024-11-06 23:12:47 +04:00

7 lines
146 B
Python

def f(A, B):
return ((A and B) == ((not B) <= (not A))) ^ A
print("A B f")
for A in (0, 1):
for B in (0, 1):
print(A, B, f(A, B))