Prolog stands for programming in logic. it is a logic programming language for artificial intelligence. An artificial intelligence developed in Prolog will examine the link between a fact, a true statement, and a rule, a conditional statement, in order to come up with a question, or end objective.
The Prolog system is simple to use. The actual intricacies of Prolog will differ from one individual to the next. In the beginning, Prolog will generate a number of lines of headers, followed by a line. It consists solely of
The system prompt is shown by the symbol above. The prompt indicates that the Prolog system is ready for the user to provide one or more sequence objectives. The sequence of objectives can be ended with a full stop.
?- write('Welcome to Edureka'),nl,write('Hello Edureka'),nl.
nl indicates 'start a new line'. When we press 'return' key, the above line will show the effect like this:
Welcome to Edureka
?- prompt shows the sequence of goal which is entered by the user. The user will not type the prompt. Prolog system will automatically generate this prompt. It means that it is ready to receive a sequence of goals.