From d42df4943da69b6f5f5e51e76b9c95a23925f9c6 Mon Sep 17 00:00:00 2001 From: daviddoji Date: Wed, 5 Oct 2022 20:20:48 +0200 Subject: [PATCH] Linting --- src/Julia/Problems001-050/Problem006.jl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Julia/Problems001-050/Problem006.jl b/src/Julia/Problems001-050/Problem006.jl index 56307ab..ccee019 100644 --- a/src/Julia/Problems001-050/Problem006.jl +++ b/src/Julia/Problems001-050/Problem006.jl @@ -22,11 +22,13 @@ function Problem6() Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum. Statement =# + n = 100 - square_of_sum = sum(i for i in (1:n))^2 - sum_squares = sum(i^2 for i in 1:n) - diff = square_of_sum - sum_squares - return diff + square_of_sum = sum(i for i = 1:n)^2 + sum_squares = sum(i^2 for i = 1:n) + ans = square_of_sum - sum_squares + + return ans end