Program Energi_listrik

Program Energi_listrik;
procedure hitung (v,i,t : real);
var
E:real;
begin
E:=v*i*t;
writeln(#20,’Nilai E=’,E);
End;
var
v,i,t:real;
Begin
writeln (‘tegangan=v?’);
readln (v);
writeln (‘arus=i?’);
readln (i);
writeln (‘hambatan=t?’);
readln (t);
hitung(v,i,t);
End.

Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

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

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s


Ikuti

Get every new post delivered to your Inbox.