Comment detail

ピラミッドを作る (Nested Flatten)

	
1
2
3
4
5
6
7
| n |
n := 4.
Transcript open.
0 to: n - 1 do: [:idx |
   Transcript cr;
      show: (String new: n - idx - 1 withAll: $ );
      show: (String new: idx * 2 + 1 withAll: $*)]

Index

Feed

Other

Link

Pathtraq

loading...