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>";
}
?>

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

0 comments:

Post a Comment

My Instagram