Source Code Menghitung Volume Kubus
<head>
<title>Menghitung Volume Kubus</title>
</head>
<center>
<body bgcolor="pink">
<?php
$teks1 = "Belajar Menghitung";
$teks2 = " Volume Kubus";
$hasil = $teks1 . $teks2;
echo "$hasil";
$s=15;
echo"<table border='2' bgcolor='black' style='color:pink'><tr><th colspan='2'<br>Panjang Sisi Kubus = $s<br>\n";
$volume=$s * $s *$s;
echo "Volume Kubus = $volume cm3";
?>
Hasil :
Nama : Agung Arpan
Nim : 12160029
Kelas : 12.5D.11

No comments:
Post a Comment