About

Saturday, 8 October 2011

TP : Program Menghitung Gaya

program gaya;
uses crt;
var
m,s,t:real;

begin
clrscr;
writeln('MENGHITUNG GAYA');
writeln('===============');
write('Masukkan massa = ');
readln(m);
write('Masukkan jarak = ');
readln(s);
write('Masukkan waktu = ');
readln(t);
writeln('-----------------------------');
writeln('Maka yang dihasilkan dengan :');
writeln('Massa = ',m:0:2,' gr');
writeln('Jarak = ',s:0:2,' meter');
writeln('Waktu = ',t:0:2,' second');
writeln;
writeln('adalah :');
writeln('Kecepatan  = ',s/t:0:2,' m/s');
writeln('Percepatan = ',(s/t)/t:0:2,' m/s^');
writeln('Gaya       = ',m*(s/t)/t:0:2,' Newton');
readln;
end.

Baca Juga Artikel dibawah ini :

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons