Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for($a=1; $a<1000; $a++)
- {
- for($b=1; $b<1000; $b++)
- {
- for($c=1; $c<1000; $c++)
- {
- $V = $a*$b*$c;
- if($V > 2000 || $V<1000)
- {
- continue;
- }
- if($a*$b == ($c-1)*$b && ($c-1)*$b == ($a-1)*($c-1))
- {
- echo "$V = $a * $b * $c <br>";
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement