Abdul and The Arfan Theory
Lebih dari hari yang kemarin
Saturday, November 11, 2006
ubah ke binary
binary(0, [0]).
binary(1, [1]).
binary(X, L):- X>1,
X1 is X//2,
binary(X1, L1),
S is X mod 2,
binary(S, Sisa),
append(L1,Sisa, L).
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment