php_program 3


Practical Name:- write a php pogram to display multiplication table get value by user.

______________________________________________________________

Solution:-

<html>

<head>

</head>

<html>

<form action="word.php" method="GET">

 

<h1>Enter number:<input type="number" name="number">

<input type="submit">

 

</form>

 

<br>

<?php

 

$table=$_GET["number"];

$upto =10;

 

for($i=1; $i<=$upto; ++$i){

echo "$table * $i = ".$table * $i ."<br />";

}

?>

</body>

</html>


Output:




Post a Comment

Previous Post Next Post