OIT/Практическая 3/3.py

7 lines
146 B
Python
Raw Normal View History

2024-11-06 23:12:47 +04:00
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))