Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Mar 13th, 2018
79
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.25 KB
| None
|
0
0
raw
download
clone
embed
print
report
#!/usr/bin/perl
for ($c=1;$c<=1000;$c++) {
for ($a=1;$a**2<$c**2;$a++) {
$b=1000-$a-$c;
# print "$a $b $c\n";
if (($a**2 + $b**2)==$c**2) {
print ($a*$b*$c);
print "\n";
$c=1001;
}
}
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
C++ Multithreading Calculate Fibonacci CHATGP...
C++ | 3 min ago | 0.60 KB
Untitled
JavaScript | 14 min ago | 2.58 KB
AdoptMe
JavaScript | 19 min ago | 2.56 KB
Untitled
C# | 31 min ago | 0.48 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 41 min ago | 0.38 KB
Untitled
C# | 41 min ago | 6.26 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 1 hour ago | 0.39 KB
data908
JSON | 1 hour ago | 0.64 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!