summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x028.pl13
1 files changed, 13 insertions, 0 deletions
diff --git a/028.pl b/028.pl
new file mode 100755
index 0000000..64d8dee
--- /dev/null
+++ b/028.pl
@@ -0,0 +1,13 @@
+#!/usr/bin/perl
+use strict;
+use warnings;
+
+my $n = 1;
+my $total = $n;
+for my $i (1..500) {
+ for my $j (1..4) {
+ $n += 2 * $i;
+ $total += $n;
+ }
+}
+print "$total\n";