Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 imbibing at the Monastery: (9)
As of 2016-06-26 17:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (331 votes). Check out past polls.