How could I rewrite the following code such that the output (evaluation result) is the same, but is obtained from code having less than 30 characters in total?

Table[Table[{b - a, b}, {b,8}],{a,8}],

I tried for more than an hour, but I can't find the solution to this problem.


closed as off-topic by m_goldberg, Henrik Schumacher, Jason B., Bob Hanlon, MarcoB Feb 26 at 19:15

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – m_goldberg, Henrik Schumacher, Bob Hanlon, MarcoB
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 3
    $\begingroup$ Table[{b - a, b}, {a, 8}, {b, 8}] is 26 characters. $\endgroup$ – bill s Feb 26 at 17:26

is 22 chars ok?

  • $\begingroup$ Thank you to both of you, it worked! :D $\endgroup$ – user63131 Feb 26 at 17:38
  • $\begingroup$ code-golf is fun! $\endgroup$ – J42161217 Feb 26 at 17:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.