Oleh: blogfirman | 25 Desember 2009

Pengenalan Pascal

Pendeklarasian Pascal

uses wincrt ;

var

nama data : type data 1 ;

nama data : type data 2 ;

begin

begin ;

….

….

end;

end.

Berikut contoh sederhana pemrograman pascal

Contoh  1:

Program mencoba_pascal;

Uses wincrt;

Begin

Write (‘MARI BERLATIH PEMROGRAMAN PASCAL’);

End.

Contoh 2 :

Uses wincrt;

Begin

Writeln(‘ = = = = = = = = = = = = = = = = = = = = = = = = = ‘);

Writeln( ‘                PEMROGRAMAN PASCAL’);

Writeln(‘             BY MUHAMMAD FIRMANSAH’);

Writeln(‘ = = = = = = = = = = = = = = = = = = = = = = = = = ‘);

End.


Tinggalkan Balasan

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

Logo WordPress.com

You are commenting using your WordPress.com 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 )

Foto Google+

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

Connecting to %s

Kategori

%d blogger menyukai ini: