Write An Sample Program In Prolog Language?

DWQA QuestionsCategory: PrologWrite An Sample Program In Prolog Language?
Editor Staff asked 11 months ago

Write An Sample Program In Prolog Language?

1 Answers
Editor Staff answered 11 months 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 !’ ).
}