We are NOT MAD! but we are Member At Discrete Math C….

  • Calendar

    Desember 2009
    S S R K J S M
    « Nov    
  • Arsip

  • Iklan

INPUT and OUTPUT in Prolog ch.2

Posted by madmathc pada Desember 22, 2009

Now we continue to explain other numbers in Practical Exercise INPUT and OUTPUT in Prolog

(2) First, type this in notepadand save it.

Then type this to make rule for Prolog. Save it ang don’t forget to add .pl at the end of your filename.

Next consult it. After that, type this…


and press Enter

Then automatically out.txt appears… Open it. This is the layout…

(3) Type it in testa.txt

Type this rule. Save it and give name

After that, consult it. Next type this…


Then the output is

This session will be continued at next post. thank for coming…:-)


Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:


You are commenting using your account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )


Connecting to %s

%d blogger menyukai ini: