Abstract
Thus far, the only means we have seen of providing information to a Prolog program has been by asking questions of the Prolog system. Also, the only method of finding out what a variable stands for at some point in the satisfaction of a goal has been by asking a question in such a way that Prolog will display the answer in the “X = answer” form. Much of the time, such direct interaction with questions is all that is required to ensure that a program is working properly. However, for many occasions it is useful to write a Prolog program that initiates a conversation with you by itself.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2003 Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
Clocksin, W.F., Mellish, C.S. (2003). Input and Output. In: Programming in Prolog. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-55481-0_5
Download citation
DOI: https://doi.org/10.1007/978-3-642-55481-0_5
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-00678-7
Online ISBN: 978-3-642-55481-0
eBook Packages: Springer Book Archive