/Prolog-Codes

Codes developed for the discipline "Applied logic to computing". - 2018.2

Primary LanguagePrologMIT LicenseMIT

Prolog Codes


Codes developed for the discipline "Applied logic to computing".


Use swipl in terminal to execute a prolog file.

Try the comand:

  consult("nameofFile").

Executing sumi.pl :

 consult("sumi").

Calling the function "esumi":

 esumi(V,grafo([1,2,3],[a(1,2), a(1,3)])).