Skip to main content
2 of 3
sort in the loop head saves one byte
Titus
  • 14.8k
  • 1
  • 24
  • 41

#PHP, 85 84 bytes

for(;++$d<9||++$a<9*$d=1;sort($r))for($x=$y=$a+1;10>$y+=$d;)$r[]=$x.=$y;print_r($r);

try it online.

sorting cost 17 bytes. This version prints the results ordered differently:

while(++$d<9||++$a<9*$d=1)for($x=$y=$a+1;10>$y+=$d;)echo"
",$x.=$y;
Titus
  • 14.8k
  • 1
  • 24
  • 41