Source Code : A division table
PHP Is Open Source Programming Language You Can Download and use It, You required xampp server and wamp server . You download From xampp server from https://www.apachefriends.org/download.html.
Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://php.net/.
Click Here or search from google with Libraries Name you get jar file related it and also http://php.net/ is a official site
A division table
<?php
$start_num = 1;
$end_num = 10;
?>
<HTML>
<HEAD>
<TITLE>A division table</TITLE>
</HEAD>
<BODY>
<H2>A division table</H2>
<TABLE BORDER=1>
<?php
print("<TR>");
print("<TH> </TH>");
for ($count_1 = $start_num;$count_1 <= $end_num;$count_1++)
print("<TH>$count_1</TH>");
print("</TR>");
for ($count_1 = $start_num;$count_1 <= $end_num;$count_1++){
print("<TR><TH>$count_1</TH>");
for ($count_2 = $start_num;$count_2 <= $end_num;$count_2++){
$result = $count_1 / $count_2;
printf("<TD>%.3f</TD>",
$result); // see Chapter 108
}
print("</TR>
");
}
?>
</TABLE>
</BODY>
</HTML>
Thank with us