Help for this page

Select Code to Download


  1. or download this
     1 
    121
     1
    
  2. or download this
       1
      121
     12321
      121
       1
    
  3. or download this
    #!/usr/bin/perl
    
    ...
    foreach $i(@i = (1..$diamondSize, reverse (1..$diamondSize-1))) {
            print ' ' x ($diamondSize - $i), (@d ="1".."$i"), (reverse @d[
    +0..$#d-1]),  "\n";
    }