Skip to main content
deleted 36 characters in body
Source Link
Armand
  • 519
  • 2
  • 7

Groovy 67, 65

(p={c,r->println' '*(109-r)+(c*(r*2-1))})'*',1;(1..109).each{p'0',it}

Surprisingly, the tree looks like this:

         *
         0
        000
       00000
      0000000
     000000000
    00000000000
   0000000000000
  000000000000000
 00000000000000000
0000000000000000000

Groovy 67

(p={c,r->println' '*(10-r)+(c*(r*2-1))})'*',1;(1..10).each{p'0',it}

Surprisingly, the tree looks like this:

         *
         0
        000
       00000
      0000000
     000000000
    00000000000
   0000000000000
  000000000000000
 00000000000000000
0000000000000000000

Groovy, 65

(p={c,r->println' '*(9-r)+(c*(r*2-1))})'*',1;(1..9).each{p'0',it}

Surprisingly, the tree looks like this:

        *
        0
       000
      00000
     0000000
    000000000
   00000000000
  0000000000000
 000000000000000
00000000000000000
Source Link
Armand
  • 519
  • 2
  • 7

Groovy 67

(p={c,r->println' '*(10-r)+(c*(r*2-1))})'*',1;(1..10).each{p'0',it}

Surprisingly, the tree looks like this:

         *
         0
        000
       00000
      0000000
     000000000
    00000000000
   0000000000000
  000000000000000
 00000000000000000
0000000000000000000