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

16 lines
332 B
PHP
Raw Permalink Normal View History

2019-11-18 14:44:36 +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 />";
}
}
?>