fork download
  1. <?php
  2.  
  3. for ($x = 1; $x <= 10; $x++) {
  4.  
  5. $answer = ( $x * $x );
  6. echo "( $x * $x ) = $answer\n";
  7. }
  8.  
Success #stdin #stdout 0.01s 52488KB
stdin
Standard input is empty
stdout
( 1 * 1 ) = 1
( 2 * 2 ) = 4
( 3 * 3 ) = 9
( 4 * 4 ) = 16
( 5 * 5 ) = 25
( 6 * 6 ) = 36
( 7 * 7 ) = 49
( 8 * 8 ) = 64
( 9 * 9 ) = 81
( 10 * 10 ) = 100