0% found this document useful (0 votes)
20 views

Program Biodata

The document contains 3 Pascal programs that collect and display user input data. The first program collects and displays a user's name, age, and address. The second program collects and displays a user's name, class, and student ID number. The third program uses graphics to collect and display a user's name, birthplace, birthdate, gender, religion, and address.

Uploaded by

Wahyu Subuh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Program Biodata

The document contains 3 Pascal programs that collect and display user input data. The first program collects and displays a user's name, age, and address. The second program collects and displays a user's name, class, and student ID number. The third program uses graphics to collect and display a user's name, birthplace, birthdate, gender, religion, and address.

Uploaded by

Wahyu Subuh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Program

program biodata;
uses crt;
var
nama, alamat : string;
umur : integer;
begin
clrscr;
writeln('===========================================');
writeln(' Biodata');
writeln('===========================================');
write('Nama : '); readln(nama);
write('Umur : '); readln(umur);
write('Alamat : '); readln(alamat);
writeln('-------------------------------------------');
writeln('Jadi data Anda : ');
writeln('Anda bernama ',nama,'. Umur Anda ',umur,' tahun. Anda tinggal di',alamat,'.');
writeln;
readkey;
end.

program satu;
uses crt;
var
nm : string;
kls : string;

npm : string;
begin
clrscr;
write <'nama saya:'>; readln ;
write <'kelas saya:'>; readln ;
write <'npm saya:'>; readln ;
write <'nama saya ',nm,' kelas saya ',kls,' npm saya ',npm>;
readln;
end.

program Input_data;
uses wincrt;
var
nama, TL, Tlr, Jk, Agama, Alamat : String;
begin
GOTOXY(35,6); WRITELN('B I O D A T A');
GOTOXY(19,7); WRITELN('-------------------------------------------');
GOTOXY(20,9); write('Nama
: '); READLN(nama);
GOTOXY(20,10);write('Tempat lahir : '); READLN(TL);
GOTOXY(20,11);write('Tanggal Lahir : '); READLN(tlr);
GOTOXY(20,12);write('jenis kelamin : '); READLN(jk);
GOTOXY(20,13);write('Agama
: '); READLN(agama);
GOTOXY(20,14);write('alamat
: '); READLN(alamat);
GOTOXY(19,15);WRITELN('--------------------------------------------');
GOTOXY(18,17);writeLN('Input Data');
GOTOXY(19,18); WRITELN('-------------------------------------------');
GOTOXY(20,19);writeln('Nama Anda
: ',nama);
GOTOXY(20,20);writeln('Tempat lahir
: ',tl);
GOTOXY(20,21);writeln('Tanggal lahir Anda : ',tlr);
GOTOXY(20,22);writeln('Jenis kelamin : ',jk);
GOTOXY(20,23);writeln('Agama
: ',agama);
GOTOXY(20,24);writeln('Alamat
: ',alamat);
GOTOXY(19,25);WRITELN('--------------------------------------------');
end.

You might also like