devmingle
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
0 vote
202 views
1 answer
Menu-driven in prolog
Prolog
-1 vote
211 views
2 answers
Hello world prolog
Prolog
0 vote
199 views
1 answer
Prolog if
Prolog
2 votes
215 views
1 answer
Prolog assert
Prolog
0 vote
203 views
1 answer
Translate( 1 2 9 one two nine ) prolog programming
Prolog
Share