Contact Us
Contact the author of the blog
Samar Dhwoj Acharya
E-mail: samar@techgaun.com
coolsamar207[at]gmail[dot]com
samar_acharya[at]hotmail[dot]com
Please email me if you need to send me your words of suggestions, appreciations or hates. Also, you can email me for link exchange.
Facebook: fb.me/techgaun
Twitter: http://www.twitter.com/techgaun
Brisha Pote
E-mail: brisha@techgaun.com
Read more...
Samar Dhwoj Acharya
E-mail: samar@techgaun.com
coolsamar207[at]gmail[dot]com
samar_acharya[at]hotmail[dot]com
Please email me if you need to send me your words of suggestions, appreciations or hates. Also, you can email me for link exchange.
Facebook: fb.me/techgaun
Twitter: http://www.twitter.com/techgaun
Brisha Pote
E-mail: brisha@techgaun.com
Freelance service
We now offer services as a freelancers and you can hire me on oDesk.Read more...
Comments (10)

Sort by: Date Rating Last Activity
Loading comments...
Post a new comment
Comments by IntenseDebate
Contact Us
2014-04-23T00:22:00+05:45
Cool Samar
Subscribe to:
Posts (Atom)
Prabeg · 711 weeks ago
techgaun · 711 weeks ago
Guru · 698 weeks ago
%parent relations
parent(pam, bob).
parent(tom, bob).
parent(tom, liz).
parent(bob, ann).
parent(bob, pat).
parent(pat, jim).
%male and female predicates
male(tom).
male(bob).
male(pat).
male(jim).
female(liz).
female(ann).
female(pam).
offspring(X, Y) :-
parent(Y, X).
brother(X, Y) :-
parent(A, X), parent(A, Y), male(X), X == Y.
sister(X, Y) :-
parent(A, X), parent(A, Y), female(X), X == Y.
aunt(X,Y) :-
parent(Z,Y),parent(W,Z),parent(W,X), female(X), Z== X.
uncle(X,Y) :-
parent(Z,Y),parent(W,Z),parent(W,X), male(X), Z== X.
happy(X) :-
parent(X, A).
has_two_children(X) :-
parent(X, A), sister(B, A), parent(X, B).
grand_child(X, Y) :-
parent(Z, X), parent(Y, Z).
w00t · 653 weeks ago
male(abraham).
male(benjamin).
male(brown).
male(ceil).
male(chris).
male(dane).
male(dough).
male(dune).
male(ace).
male(bradly).
male(chunck).
female(brondie).
female(cathy).
female(chrony).
female(eva).
female(barbara).
female(cathy).
parent(abraham, benjamin).
parent(abraham, brondie).
parent(abraham, brown).
parent(brondie, cathy).
parent(brondie, ceil).
parent(brown, chris).
parent(brown, chrony).
parent(cathy, dane).
parent(ceil,dough).
parent(chris, dune).
parent(dough, eva).
parent(ace, barbara).
parent(barbara, chunck).
parent(bradly, chunck).
cousin(X,Y) :-
parent(Z,X),parent(W,Y),sibling(Z,W),Z=W.
ancestor(X, Y) :-
parent(X, Y).
ancestor(X, Y) :-
parent(X, Z), ancestor(Z, Y).
sibling(X,Y) :-
parent(Z, X), parent(Z, Y).
descendant(X, Y) :-
ancestor(Y,X).
aunt(X,Y) :-
parent(Z,Y),sibling(Z, X), female(X), Z = X.
uncle(X,Y) :-
parent(Z,Y),sibling(Z,X), male(X), Z = X.
grandfather(X, Y) :-
parent(Z, Y), parent(X, Z), male(X).
w00t · 652 weeks ago
hanoi(N):- move(N, left,center, right).
move(0,_,_,_):- !.
move(N, A, B, C):-
M is N-1,
move(M, A, C, B),
stepsinfo(A,B),
move(M, C, B, A).
stepsinfo(X,Y):-
write([move,the,disc,from,X,to,Y]), nl.
%factorial
fact(0,1).
fact(N, F):-
N > 0, M is N - 1, fact(M, F1), F is F1 * N.
%fibonacci
fibo(0,1):-
!, write('1, ').
fibo(1,1):-
!,write('1, ').
fibo(N, X):-
N > 1, N1 is N-1, N2 is N-2, fibo(N1,X1),fibo(N2, X2), X is X1+X2,write(X), write(', '),nl.
ramesh · 647 weeks ago
sameer · 633 weeks ago
techgaun 46p · 633 weeks ago
Ashraf Sohel · 552 weeks ago
Sunil · 527 weeks ago
I am using Scribd app on Air Pad 2. I have saved couple of books on the device. I can see that files are saved in Scribd app. however I can not synic them with my PC nor convert on PDF.
Do you have any suggestions.
Thanks
Sunil