Print table of given number using php


 <?php

$n=5;

for($i=1;$i<=10;$i++)

{

$result=$n*$i;

echo "$result"."\t";

}

?>


To run and output:-


 

No comments:

Post a Comment

theengineerschoice01@gmail.com