How to list all possible combination (consisting two elements) of a set in PROLOG
The steps
1. Write the source in notepad and then save as “a.pl”, e.g.:
2. Open the SWI PROLOG and load the source “a.pl”
3.. To combine the two sets (hewan and tuan) write this command
“hewan(X),tuan(Y).”
4. To show the another result, press “;”. It will become like this
End of 2018, Start of 2019
6 tahun yang lalu
Tidak ada komentar:
Posting Komentar