stackofcodes
Home
Categories
Popular Codes
Articles
/
Prolog
/
Full adder in prolog
Full adder in prolog
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.
0
Source:
stackoverflow.com
Share
Similar codes
-1 vote
220 views
2 answers
Hello world prolog
Prolog
0 vote
210 views
1 answer
Prolog if
Prolog
0 vote
232 views
1 answer
Translate( 1 2 9 one two nine ) prolog programming
Prolog
2 votes
237 views
1 answer
Prolog assert
Prolog
0 vote
212 views
1 answer
Menu-driven in prolog
Prolog
Share