in reply to Re: computing square root by hand -- no sqrt (golf, beginner)
in thread computing square root by hand -- no sqrt (golf, beginner)
print $ARGV[0]**.5
This is the best answer I've seen in this thread :) It's clear, short and very precise...
How about some golfing while you're at it?
I know that this is 18 strokes like yours, but this one prints a newline ;)die+shift()**.5,$/
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: computing square root by hand -- no sqrt (golf, beginner)
by jynx (Priest) on May 12, 2002 at 04:55 UTC |