TGZ

download TGZ

If you can't read please download the document

  • date post

    22-Aug-2014
  • Category

    Documents

  • view

    51
  • download

    5

Embed Size (px)

Transcript of TGZ

uses crt; var s,p,l,t,LPk,LPb,Vb,Vk,Db,Dk : real; begin clrscr; write ('===================Selamat Datang di Turbo Pascal======================' ); write ('PROGRAM MENGHITUNG LUAS PERMUKAAN,VOLUME,DIAGONAL RUANG KUBUS DAN BALOK' ); write ('Masukkan sisi = '); read(s); write ('Masukkan panjang = '); read(p); write ('Masukkan lebar = '); read(l); write ('Masukkan tinggi = '); read(t); LPk := (6*s*s); LPb := (2*((p*l)+(p*t)+(l*t))); Vk := (s*s*s); Vb := (p*l*t); Dk := (s*(sqrt(3))); Db := (sqrt(sqr(p)+sqr(l)+sqr(t))); writeln ('LPk = ',LPk); readkey; writeln ('LPb = ',LPb); readkey; writeln ('Vk = ',Vk); readkey; writeln ('Vb = ',Vb); readkey; writeln ('Dk = ',Dk); readkey; writeln ('Db = ',Db); readkey; end.