PHP Programing language

Write a program Nesting two for loop
Previous Home Next
<html>
<head><title>Nesting Two for Loops</title></head>
<body>
<div>
<?php
    print "<table>";
    for ( $y=1; $y<=10; $y++ ) {
      print "<tr>";
      for ( $x=1; $x<=10; $x++ ) {
        print "<td>";
        print ($x*$y);
        print "</td>";
      }
      print "</tr>";
    }
    print "</table>";
?>
</div>
</body>
</html>

 

output
Previous Home Next

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Name:
eMail:
Comment / Feedback: