Membuat program untuk mencari nilai rata-rata dari 4 masukkan nilai.
source code :
Uses wincrt;
var nilai : array [1..4] of integer ;
jm,rata : real;
begin
clrscr ;
writeln(‘menghitung rata-rata 4 buah nilai’);
writeln(‘nilai =’);readln(nilai [1] );
writeln(‘nilai =’);readln(nilai [2] );
writeln(‘nilai =’);readln(nilai [3] );
writeln(‘niali =’);readln(nilai [4] );
jm := nilai[1]+nilai[2]+nila[3]+nilai[4];
rata:= jm/4;
writeln;
writeln(‘jumlah =’,jm :9:2);
writeln(‘rata-rata =’,rata :9:2);
end.
Popular Posts
- Download Uniblue Registry Booster 2010 Full Version
- Windows XP Dark Edition V.7 SP3 SATA Driver
- Eliminate Broken Links in Google
- The Expendables 2010 CAM xvid-Classified
- Download Windows XP Professional SP3 Integrated September 2010 Corporate German
- DVD/VCD Copy Protection Download
- Fitur Baru Pada Windows 8
- Cheat Point Blank (PB) WhItE V.1.7 29 Oktober 2010
- Download NOD32 v3.v4 Update Offline 17 September 2010
hehehe aku juga ada program gituan tapi gua cuman bisa nyontek temen hehehe
ReplyDeletekalo emang ada kenapa gak dishare bro?
ReplyDeletesapa tau ntar q bisa ngopy juga :D :D :D
thanks 4 comment.