Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Diamonds for fun

by perl_nando (Novice)
on Mar 05, 2011 at 10:53 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-18 18:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found