6 lines
216 B
Text
6 lines
216 B
Text
procedure print_logic(integer a, integer b)
|
|
printf(1,"a and b is %d\n", a and b)
|
|
printf(1,"a or b is %d\n", a or b)
|
|
printf(1,"a xor b is %d\n", a xor b)
|
|
printf(1,"not a is %d\n", not a)
|
|
end procedure
|