Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

ASCII Pattern - Golf

by devslashneil (Friar)
on Sep 19, 2003 at 00:16 UTC ( [id://292544]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    444444444
    433333334
    ...
    432222234
    433333334
    444444444
    
  2. or download this
    666666667
    555555567
    ...
    101234567
    111234567
    222234567
    
  3. or download this
    #!/usr/bin/perl
    for($y=9;$y>0;$y--){print abs$ARGV[1]-$y>abs$ARGV[0]-$_?abs$ARGV[1]-$y
    +:abs($ARGV[0]-$_)for(1..9);print"\n"}
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://292544]
Approved by Zaxo
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (1)
As of 2024-04-25 19:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found