Monday, 22 June 2015

PHP program to display random number and its square root.


This is a embedded HTML and PHP program to display random number and its  square root.

<html>
<head><title>Random</title></head>
<body>
<p>Number generated randomly is  <?php
    $choice = rand(1, 100);
    echo $choice;
?>.And its square root is <?php
    echo sqrt($choice);
?>.</p>
</body>
</html>

output

No comments:

Post a Comment