Printing all Prolog answers to a file
Prolog lets you specify a series of declarative logic statements (i.e. “X is an Apple”, “if X is an Apple then X is a fruit”). It can trace through all solutions to a problem. In the IDE this is done by pressing “;”. If you structure your program correctly, you can get the whole output …