This time semicolon ( ) key is pressed by the user. The above query means that 'find the B's value, and it will be the name of a dog'. It will cause the Prolog pause, and because of this, we have to wait for the user to press the 'return' key before it outputs the system prompt ?. Other possible answers of A are as follows, poodle, bulldog, dobermann. It means that find the A's value, and it will be the name of the dog. In this example, various new features of Prolog are introduced. ![]() It will list all the clauses which define predicate dog # 0.01 seconds to consult loaded using the consultĪ = rottweiler pauses- return key is pressed by the userī = dobermann No pause ? It will go onto next line Assume that in a text file '', the program has been saved, and output is generated by loading the program and at the system prompt, we are entering a sequence of goals as follows: ![]() Predicate dog and predicate cat both have four clauses. It is always terminated using the full stop.*/ * This Prolog program consists of various clauses.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |