Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
与えられた:
fruitid('Apple', 'Granny Smith', 1).
条項を作成するにはどうすればよいですか?
print_fruit_details(FruitID) :-
入力1が与えられると、「Apple」と「GrannySmith」が出力されます。
ありがとう、
JAS
これを試して:
print_fruit_details(FruitID) :- fruitid(X, Y, FruitID), write(X), write(Y).
そして、StackOverflow へようこそ :)