fork download
  1. <?php
  2.  
  3.  
  4. $n = 20;
  5. for ($i = 1; $i<=$n; $i++) {
  6. echo "{$i}x{$i} = ".$i*$i."\n";
  7. }
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
1x1 = 1
2x2 = 4
3x3 = 9
4x4 = 16
5x5 = 25
6x6 = 36
7x7 = 49
8x8 = 64
9x9 = 81
10x10 = 100
11x11 = 121
12x12 = 144
13x13 = 169
14x14 = 196
15x15 = 225
16x16 = 256
17x17 = 289
18x18 = 324
19x19 = 361
20x20 = 400