Untuk hasil lebih lengkap bisa dicoba program berikut:

konversi suhu:

program repet;
uses wincrt;
var C,R,F :real;
begin
clrscr;
writeln (‘C’:12,’R’:12,’F’:12);
writeln(‘=====================================’);
C:=0;
repeat
R:=4/5*C;
F:=9/5*C+32;
writeln(C:12:2,R:12:2,F:12:2);
C:=C+0.5;
until C>10;
writeln(‘=====================================’);
end.

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