Minggu, 10 Juni 2012

Script Matematika Sederhana

nih gan ane share Script perkalian matematika sederhana,sebenernya ini cuma buat bantu tmen ane
tapi semoga bermanfaat deh buat agan yang belajar web desaign :D

<html>
<head>
<title>Table Matematika</title>
</head>
<body>
<?php
$nilai1=5;
$nilai2=6;
$hasil1=$nilai1+$nilai2;
$nilai3=5;
$nilai4=5;
$hasil2=$nilai3*$nilai4;
$total=$hasil1+$hasil2;
?>
<table bgcolor="blue" border="1" width="200" align="center">
<tr>
<td width="20">No</td>
<td width="60">Nilai1</td>
<td width="60">Nilai2</td>
<td width="60">Jumlah</td>
</tr>
<tr>
<td width="20">1</td>
<td width="60"><?php echo"$nilai1" ?></td>
<td width="60"><?php echo"$nilai2" ?></td>
<td width="60"><?php echo"$hasil1" ?></td>
</tr>
<tr>
<td width="20">2</td>
<td width="60"><?php echo"$nilai3" ?></td>
<td width="60"><?php echo"$nilai4" ?></td>
<td width="60"><?php echo"$hasil2" ?></td>
</tr>
<tr>
<td width="20">3</td>
<td width="120" colspan="2">Total</td>
<td width="60"><?php echo"$total" ?></td>
</tr>
</table>
</body>
</html>
Semoga Bermanfaat

0 komentar:

Posting Komentar

Labirin-X © 2008 Template by:
SkinCorner