Set in sets in sets [cancelled]
+0
−1
Make a program that outputs either parentheses, brackets, or braces to represent sets, and the premise is a positive integer input. Output sets in sets, and the higher the number, the more sets encased in each other.
-
1
outputs{}
. -
2
outputs{{}}
. -
5
outputs{{{{{}}}}}
-
16
outputs{{{{{{{{{{{{{{{{}}}}}}}}}}}}}}}}
.
Shortest program wins.
0 comment threads