Cyberprotol Indonesia

Pusat informasi dunia cyber dan teknologi
Follow Me

Praktikum 2B (Algoritma dan struktur data)



By  Firman Arifin     12/03/2010 03:11:00 PM    Labels: 

Listing program nilai konstan

Program nilai_konstan;
Uses crt;
Const
Nama = 'Firman';
Stb = '1302100093';
Kls = 'TI L1.2';
Thn_msk = 2010;
Tgl_msk = 25;
Bln_msk = 9;
Var
Thn_skrg,bln,b,tgl,t,j : integer ;
Lama : longint;
Begin
Clrscr;
Writeln('Data Mahasiswa');
Writeln('==============');
Writeln('Nama Lengkap = ',nama);
Writeln('Stambuk = ',stb);
Writeln('Kelas = ',kls);
Writeln('===============');
Writeln('Tahun Masuk = ',thn_msk);
Write('Tahun Sekarang= ');readln(thn_skrg);
Lama:=thn_skrg-thn_msk;
Writeln('================');
writeln('Bulan Masuk = ',bln_msk);
write('Bulan Sekarang = ');readln(bln);
b:=bln-bln_msk;
writeln('================');
Writeln('Tanggal Masuk =',tgl_msk);
Write('Tanggal Sekarang = ');readln(tgl);
Write('Jarak Bulan =');readln(j);
t:=((30-tgl_msk)+j)+tgl;
Writeln('================');

Writeln('lama anda kuliah di universitas muslim indonesia');
Writeln(t,' Hari', ' - ',b,' Bulan',' - ', lama,' Tahun');
End.

layout

About Firman Arifin

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas euismod diam at commodo sagittis. Nam id molestie velit. Nunc id nisl tristique, dapibus tellus quis, dictum metus. Pellentesque id imperdiet est.

No comments:

Post a Comment

Silahkan masukkan komentar sobat, komentar sobat sangat berarti buat saya


Contact Form

Name

Email *

Message *

Labels

Translate