Program Resistor

Program Resistor
program resistor_par;

uses crt;

var
R1,R2,R3,R4,Rp,Rtot,E,Itot,ER4 : real;

begin
clrscr;
write(‘nilai R1 = ‘); readln(R1);
write(‘nilai R2 = ‘); readln(R2);
write(‘nilai R3 = ‘); readln(R3);
write(‘nilai R4 = ‘); readln(R4);
write(‘nilai E = ‘); readln(E);

Rp := R1*R2*R3/(R1*R2+R2*R3+R1*R3);
Rtot := Rp + R4;
Itot := E/Rtot;
ER4 := I*R4;

writeln(‘nilai Rp = ‘,Rp:6:2,’ohm’);
writeln(‘nilai Rtot = ‘,Rtot:6:2,’ohm’);
writeln(‘nilai Itot = ‘,Itot:6:2,’ampere’);
writeln(‘nilai ER4 = ‘,ER4:6:2,’volt’);
readln;
end.

  1. Belum ada komentar.
  1. No trackbacks yet.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: