summaryrefslogtreecommitdiffstats
path: root/6.lua
diff options
context:
space:
mode:
Diffstat (limited to '6.lua')
-rw-r--r--6.lua13
1 files changed, 0 insertions, 13 deletions
diff --git a/6.lua b/6.lua
deleted file mode 100644
index 3c39a4b..0000000
--- a/6.lua
+++ /dev/null
@@ -1,13 +0,0 @@
-local function sum_of_squares(n)
- local total = 0
- for i = 1, n do
- total = total + i^2
- end
- return total
-end
-
-local function square_of_sum(n)
- return n^2*(n+1)^2/4
-end
-
-print(square_of_sum(100) - sum_of_squares(100))