Mon Oct 27, 2008 12:56 pm
<html>
<head>
<title>Nesting Two for Loops</title>
</head>
<body>
<?php
print "<table>\n";
for ( $y=1; $y<=12; $y++ ){
print "<tr>\n";
for ( $x=1; $x<=12; $x++ ) {
print "\t<td>";
print ($x*$y);
print "</td>\n";
}
print "</tr>\n";
}
print "</table>";
?>
</body>
</html>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.