Print Table using for loop in PHP

<?php
$u="Table of 2 Using PHP";
echo $u."<br>";
for($i=1;$i<=10;$i++)
{
$s=$i*2;
echo " 2 * ".$i." = ".$s."<br>";
}
?>

---------------------------

No comments

Powered by Blogger.