SHARE
TWEET

Untitled

Rofihimam Sep 9th, 2019 119 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>Buat Fungsi Rofi'ul Hima XI RPL 2</title>
  5.     <link rel="stylesheet" type="text/css" href="perulangan.css">
  6. </head>
  7. <body>
  8.     <p id="coba">
  9.         <script type="text/javascript" language="javascript">
  10.             function hitungLuasAlas (p, l){
  11.                 var luas = p * l;
  12.                 return luas;
  13.             }
  14.             function hitungVolume (la, t){
  15.                 var vol = la * t / 2;
  16.                 return vol
  17.             }
  18.             var panjang = 5;
  19.             var lebar = 3;
  20.             var tinggi = 4;
  21.             var luasAlas;
  22.             var volume;
  23.             luasAlas = hitungLuasAlas(panjang, lebar);
  24.             volume = hitungVolume(luasAlas, tinggi);
  25.             alert("ini adalah luas alas ==> " + luasAlas);
  26.             alert("ini adalah volume ==> " + volume);
  27.         </script>
  28.     </p>
  29. </body>
  30. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top