Prolog Questions
1: write prolog program to search book by book_title ,by book_author, by book_edition Using
recursion.
Hint: your input must be from above mentions, your rule must recursively find the book and
display the complete book information as provided in facts.
Facts: book(b_name,b_authmb_edition)
search_book() :-
write(\"Enter book author name : \"),
readln(BOOK_AUTH),
data(name(Z),company(BOOK_AUTH)),
nl, write(Z),
fail.
Comments
Leave a comment