Advertisement
Guest User

Untitled

a guest
Feb 24th, 2015
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. for($a=1; $a<1000; $a++)
  2. {
  3. for($b=1; $b<1000; $b++)
  4. {
  5. for($c=1; $c<1000; $c++)
  6. {
  7. $V = $a*$b*$c;
  8. if($V > 2000 || $V<1000)
  9. {
  10. continue;
  11. }
  12.  
  13. if($a*$b == ($c-1)*$b && ($c-1)*$b == ($a-1)*($c-1))
  14. {
  15. echo "$V = $a * $b * $c <br>";
  16. }
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement