Write An Sample Program In Prolog Language?

Category: PrologWrite An Sample Program In Prolog Language?
Editor">Editor Staff asked 2 years ago

Write An Sample Program In Prolog Language?

1 Answers
Editor">Editor Staff answered 2 years ago

Here is an example. of Sample programming language by displaying the message “Hello”:
SOURCE CODE :
// the main program (this is a comment)
Hello:-
nl,
write(‘Hello !’ ).
}