Hello World in Prolog
Every programming journey starts with Hello World. Let’s write our first Prolog program and get our first taste of logic programming.
The Code
Create a file named hello.pl:
| |
Every programming journey starts with Hello World. Let’s write our first Prolog program and get our first taste of logic programming.
Create a file named hello.pl:
| |
Prolog’s data model is radically different from mainstream languages. There are no typed declarations, no assignment statements, and no primitive/object divide. Instead, everything is a term, …
Read more →Showing 1–2 of 2 posts (page 1 of 1)