Rabu, 25 November 2009

Exercise 5 (Output and Input)

Hii,,,
Let's learn about Output and input

1. Open your notepad and write like this below and consult at prolog

Than write makelower on Prolog, and than enter. Write a sentence and the sentence is up to you.
and then enter.



2.  Open your notepad and write like this below and consult at prolog
 
 than write this below in new wordpad and write copyterms(‘Infile.txt’,'Outfile.txt’). 

in prolog.






and the result is



3.  Open your notepad and write like this below and consult at prolog

and then make a file name testa.txt, and write ('testa.txt'). on prolog.


and the result is



 4.  Open your notepad and write like this below and consult at prolog
 

 and then make a new file name In1.txt


make a file name  in2
 

  And then write combine(‘in1.txt’,'in2.txt’,'out.txt’). on prolog, and the result is

 5.  Open your notepad and write like this below and consult at prolog

 make a new file,









 make a new file again,

and then write compare(‘1.txt’,'2.txt’). in prolog, and the result is

Tidak ada komentar:

Posting Komentar