programming-examples/php/_Basics/PHP program to find table of a number.php

16 lines
332 B
PHP
Raw Normal View History

2019-11-15 12:59:38 +01:00
//Write a program to find table of a number
<?php
if(isset($_POST['sub']))
{
$num=$_POST['num'];
echo "<h1><center>Table of " .$num."</center></h1>";
for($i=1;$i<=10;$i++)
{
echo $num*$i;
echo "<br />";
}
}
?>