13.04.2013 Views

Exemplu - Facultatea de Electrotehnică şi Electroenergetică

Exemplu - Facultatea de Electrotehnică şi Electroenergetică

Exemplu - Facultatea de Electrotehnică şi Electroenergetică

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Cap. Cap Cap. 7 OPERATII DE DE CITIRE CITIRE / / SCRIERE SCRIERE (I/O)<br />

(I/O)<br />

Scrierea<br />

Predicatul <strong>de</strong> scriere prezintă sintaxa:<br />

write(arg1, it ( 1 ... ,argn) )<br />

în care argumentele pot fi constante sau variabile legate ce aparţin unor<br />

domenii standard sau <strong>de</strong>finite <strong>de</strong> programator.<br />

În interiorul <strong>şi</strong>rului <strong>de</strong> caractere care pot fi afisate pe ecran,<br />

sunt acceptate<br />

următoarele u ătoaeecaactee<strong>de</strong>co caractere <strong>de</strong> control: to<br />

\n n – scrie pe linie nouă, \t t – tabulator,<br />

\r r – enter, \nnn nnn – scrie caracterul cu codul ASCI nnn nnn.<br />

<strong>Exemplu</strong> <strong>Exemplu</strong>: : goal write (" ("\t t Lista1 = ", L1, " "\ n\ t Lista2 = ", L2).<br />

rezultă Lista1 = [ [] ]<br />

Lista2 = [1, 22]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!