Program menentukan Titik Tengah

program titik_tengah;

uses wincrt;

var

x1,x2,x,y1,y2,y:real;

begin

write(‘ x1=’);read(x1);

write(‘ y1= ‘);read(y1);

write(‘ x2= ‘);read(x2);

write(‘ y2= ‘);read(y2);

x:=(x1+x2)/2;

y:=(y1+y2)/2;

writeln;

write(‘koordinat titik tengah adalah ( ‘,x:5:2,’ , ‘,y:5:2,’)’);

end.

Iklan

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 )

Foto Google+

You are commenting using your Google+ 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 )

Connecting to %s

%d blogger menyukai ini: