<?php $n = 20; for ($i = 1; $i<=$n; $i++) { echo "{$i}x{$i} = ".$i*$i."\n"; }
Standard input is empty
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