Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
0 of .
Results for:
P. 1
Contoh Program Pascal

# Contoh Program Pascal

Ratings: (0)|Views: 10,116|Likes:

### Availability:

See more
See less

04/13/2013

pdf

text

original

BeginMasukkanumur andaUmur < 2YKlasifikasianda = bayiUmur < 12Klasifikasianda =anak-anakUmur < 18Klasifikasianda =remajaUmur < 24Klasifikasianda =DewasamudaUmur < 24Klasifikasianda =DewasamudaYYYY
Umur < 40Klasifikasianda =DewasaTuaUmur < 55Klasifikasianda =Orang TuaKlasifikasianda =LansiaYYEnd
By Rony and Riska (^^)
1.Menampilkan umur andaFlow chart :

By Rony and Riska (^^)
Listing program
:Uses wincrt;Var input:integer;Beginwriteln('Nama : Rony Andrew');writeln('NRP : 11-2004-180');writeln('==================');writeln(' ');Write('Masukkan Umur anda = ');readln(input);If input <2 thenWriteln('klasifikasi Anda = Bayi')else If input <12 thenWriteln('klasifikasi Anda = Anak-anak')else If input <18 thenWriteln('klasifikasi Anda = Remaja')else If input <24 thenWriteln('klasifikasi Anda = Dewasa muda')else If input <40 thenWriteln('klasifikasi Anda = Dewasa tua')else If input <55 thenWriteln('klasifikasi Anda = Orang Tua')ElseWriteln('klasifikasi Anda = Lansia');Repeat until keypressedEnd.
Output :

By Rony and Riska (^^)
2.Menampilkan urutan angkaListing Program : program kolom;uses wincrt;var i,j,n:integer; beginwriteln('Nama : Rony Andrew');writeln('NRP : 11-2004-180');writeln('==================');writeln(' ');write('Masukkan angka = ');readln(n);for i:=1 to n dobeginfor j:=1 to n-1 dowrite(j);j:=j+1;writeln(j);end;repeat until keypressed;end.Output :3.Menampilkan urutan sesuai jumlah kolomListing program : program baris;uses wincrt;var i,j,k,n:integer;beginwriteln('Nama : Rony Andrew');writeln('NRP : 11-2004-180');