Pemograman

Program Record_pascal;
Uses crt;
Type
wisatawan = Record
Nama : string[30];
JenisKelamin : string[20];
Alamat : string[20];
Umur : real;
end;
Var
Wstw:Wisatawan;
Begin
ClrScr;
write (‘Nama:’);ReadLn(Wstw.Nama);
write (‘Alamat:’);Readln(Wstw.Alamat);
write (‘Jenis Kelamin:’);Readln(Wstw.JenisKelamin);
write (‘Umur:’);Readln(Wstw.Umur);
Writeln;
Writeln(‘Nama Anda:’,Wstw.Nama);
Writeln(‘Alamat Anda:’,Wstw.Alamat);
Writeln(‘Jenis Kelamin Anda:’,Wstw.JenisKelamin);
Writeln(‘Umur Anda:’,Wstw.Umur:0:0);
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