Advertisement
ini_PlayeR

While_6

Apr 14th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. <?php
  2.     $x=1;
  3.     while($x<=23)
  4.     {
  5.         $y=1;
  6.         while($y<=23)
  7.         {
  8.             $z=1;
  9.             while($z<=23)
  10.             {
  11.                 if($x+$y+$z==25)
  12.                 {
  13.                     echo "x= ".$x.", y= ".$y.", z= ".$z."<br>";
  14.                 }
  15.                 $z++;
  16.             }
  17.             $y++;
  18.         }
  19.         $x++;
  20.     }
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement