I've tried, tried, and nothing. A program that multiplies a number entered by someone in descending order.
For example:
I typed 7
and gave OK: 7x6x5x4x3x2x1
The result of all this should appear.
Code I already have:
<?php
$n = $_GET['num'];
$n2 = $n1;
$tot = 0;
while($n >= 1){
$n2 = $n2 - 1;
$tot = $n2 * $n2;
$n--;
echo "$tot <br>";
}
?>