in reply to Pythagorean's theorem
#!/usr/bin/perl use strict; my $max = shift or die "Usage: $0 <max len>\n"; for my $t ( 2..$max ){ for my $s ( 1..$t-1 ){ print $t*$t-$s*$s," ",2*$s*$t," ",$t*$t+$s*$s," is a winner\n" +; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Pythagorean theorem
by fuzzyping (Chaplain) on Feb 27, 2002 at 22:41 UTC | |
by I0 (Priest) on Feb 27, 2002 at 23:53 UTC |