Problem: Magic square
Code: Magic+square/darrenks_1640145890
Nibbles version: 0.2 | 0.21 | 0.22 | 0.23 | 0.24 | 0.25 | 1.00
Format: Compact | Simple | +Type | Table | JSON | .nbl (DeBruijn) | .nbl (names)
Depth | Lit | Desc | Type | Arg | Let |
---|---|---|---|---|---|
0 | . | map | [[[chr]]] | ||
* 1 | , | range from 1 | [int] | ||
** 2 | $ | = fstInt | int | ||
* 1 | . | map | [[chr]] | A:int | |
** 2 | , | range from 1 | [int] | ||
*** 3 | @ | = fstInt | int | ||
** 2 | & | justify | [chr] | B:int | |
*** 3 | " " | string | [chr] | ||
*** 3 | 3 | integer | int | ||
*** 3 | + | add | int | ||
**** 4 | + | add | int | ||
***** 5 | % | modulus | int | ||
****** 6 | + | add | int | ||
******* 7 | + | add | int | ||
******** 8 | - | subtract | int | ||
********* 9 | @ | = A | int | ||
********* 9 | * | multiply | int | ||
********** 10 | $ | = B | int | ||
********** 10 | ~ | auto = 2 | auto | ||
******** 8 | $ | = B | int | ||
******* 7 | / | divide | int | ||
******** 8 | _ | = fstInt | int | ||
******** 8 | ~ | auto = 2 | auto | ||
****** 6 | _ | = fstInt | int | ||
***** 5 | ~ | auto = 1 | auto | ||
**** 4 | * | multiply | int | ||
***** 5 | % | modulus | int | ||
****** 6 | - | subtract | int | ||
******* 7 | @ | = A | int | ||
******* 7 | * | multiply | int | ||
******** 8 | $ | = B | int | ||
******** 8 | ~ | auto = 2 | auto | ||
****** 6 | _ | = fstInt | int | ||
***** 5 | _ | = fstInt | int |