Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Prolog/Reading and Writing code

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

This section gives guidelines and tips on reading and writing prolog code, and how to think about prolog code in general. Examples fac(0,1). fac(A,B) :- A > 0, C is A-1, fac(C,D), B is A*D. Exercises previous: ../Cuts and Negation/ next: ../Difference Lists/