Horje
hello world prolog Code Example
[Solved] - hello world prolog Code Example
Try following codes
hello world prolog
$ cat hello.pl 
:- initialization(main).
main :- write('Hello World!'), nl, halt.


$ gplc hello.pl 
$ ./hello

Hello World!
Source: ingrom.com
hello world prolog
> ./hw
Hello, world!
>
Date: 2022-05-21 05:02:10
Category: prolog
More for You