Computer Science, asked by piyushmanral8295, 1 year ago

Write a PHP script to display the squares of 1 to 10 numbers.

Answers

Answered by blasticurita
5

<html>

<body>

<caption><center><b>Integer Numbers 1-10 and Square Numbers</caption><p>

<table border=3 cellspacing=3 cellpadding=3>

<tr><th>Number<th>Sqaure

</tr>

<?php

$count=1; $square=1;

while($count<=10)

{

$square=$count*$count;

echo “<tr><th>”,$count,”<th>”,$square,”</tr>”;

$count++;

}

?>

</body>

</html>

Attachments:
Answered by ruchisakhare09
0

Answer:

1 2 3 4 5 6 7 8 9 10

Explanation:

1 2 3 4 5 6 7 8 9 10

Similar questions