Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Diamonds for fun

by perl_nando (Novice)
on Mar 05, 2011 at 10:53 UTC ( #891559=CUFP: print w/ replies, xml ) Need Help??

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";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: CUFP [id://891559]
Approved by BrowserUk
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2014-09-20 23:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (163 votes), past polls