Horje
full adder in prolog Code Example
[Solved] - full adder in prolog Code Example
Try following codes
full adder in prolog
halfadd(X, Y, Z, C) :-
   Z is X xor Y,
   C is X /\ Y.

fulladd(X, Y, C, Z, D) :-
   halfadd(X, Y, H, J),
   halfadd(H, C, Z, K),
   D is J \/ K.
Date: 2022-05-21 05:02:10
Category: prolog
More for You