- SOURCE CODE
uses crt;
var
Des, Desi : integer;
Bin : string;
UI : char;
begin
clrscr;
repeat
clrscr;
writeln('Program Konversi Desimal ke Biner');
writeln('======================');
writeln;
write('Masukkan Bilangan Desimal : ');readln(Des);
Desi := Des;
Bin := '';
repeat
if(Des Mod 2 = 0) then
Bin := '0'+Bin
else
Bin := '1'+Bin;
Des := Des Div 2;
Until Des = 0;
writeln;
writeln(Desi,' Desimal = ',Bin,' Biner');
writeln;
write('Mau Ulang Lagi? [Y/T] :');readln(UI);
UI := Upcase(UI);
Until (UI <> 'Y');
readkey;
end.
- PENJELASAN SOURCE CODE
uses crt; {Deklarasi unit CRT}
var {Variabel}
Des, Desi : integer; {Inisiasi variabel}
Bin : string; {Inisiasi variabel}
UI : char; {Inisiasi variabel}
begin {Awal instruksi program}
clrscr; {Membersihkan layar}
repeat {Ulang kerjakan}
clrscr; {Membersihkan layar}
writeln('Program Konversi Desimal ke Biner'); {Cetak Program Konversi Desimal ke Biner}
writeln('======================'); {Cetak ===========================}
writeln; {Cetak baris}
write('Masukkan Bilangan Desimal :'); {Cetak Masukkan Bilangan Desimal :}
readln(Des); {Baca variabel Des}
Desi := Des; {Desi = Des}
Bin :=''; {Bin = ''}
repeat {Ulang kerjakan}
if(Des Mod 2 = 0) then {Jika Des mod 2 = 0 maka}
Bin := '0' + Bin {Counter penjumlahan Bin}
else {Kalau tidak}
Bin := '1' + Bin; {Counter penjumlahan Bin}
Des := Des Div 2; {Counter pembagian Des}
Until Des = 0; {Pembatasan repeat}
writeln; {Cetak baris}
writeln(Desi,' Desimal = ',Bin,' Biner'); {Cetak variabel Desi, Desimal =, variabel Bin, Biner}
writeln; {Cetak baris}
write('Mau Ulang Lagi ? [Y/T] :'); {Cetak Mau Ulang Lagi ? [Y/T] :}
readln(UI); {Baca variabel UI}
UI := Upcase(UI); {UI = Upcase(UI)}
Until (UI <> 'Y'); {Pembatasan repeat}
readkey; {Instruksi untuk menunggu}
end. {Akhir instruksi program}
- PRINT SCREEN OUTPUT
Untuk mempermuda anda dalam mempelajari pemograman dengan menggunakan bahasa Pascal, admin telah menyediakan file Source code, Penjelasan source code, Output program, Flowchart dari source code, serta file pascalnya. Anda dapat mendownloadnya secara gratis di link download di bawah ini.
- Title Program : Konversi angka desimal ke biner
- Source Code .pdf : .:_Download_:.
- Flowchart .png : .:_Download_:.
- Program .pas : .:_Download_:.
- Password : kamuspascal.blogspot.com
Jika anda tidak tahu bagaimana cara mendownload file-file di atas klik Disini, untuk mempelajarinya.
If you're trying to lose weight then you certainly need to get on this brand new tailor-made keto meal plan.
ReplyDeleteTo create this keto diet, certified nutritionists, fitness couches, and cooks joined together to develop keto meal plans that are effective, convenient, money-efficient, and enjoyable.
Since their grand opening in 2019, hundreds of people have already completely transformed their body and health with the benefits a proper keto meal plan can offer.
Speaking of benefits: in this link, you'll discover eight scientifically-certified ones provided by the keto meal plan.
maaf min, apa password dari file zip tersebut min ?
ReplyDeleteLucky Club Casino Site - Live Dealer Review 2021
ReplyDeleteLucky Club Casino is a real money casino powered by Microgaming. Its main game: online luckyclub slots, bingo, table games, video poker, live dealer casino