469,140 Members | 1,139 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,140 developers. It's quick & easy.

[HELP] Sum Square Difference - Project Euler (6)

Anyone can help me with this question?

The sum of the squares of the first ten natural numbers is,
1 + 2 + ... 10 = 385...

The square of the sum of the first ten natural numbers is,
(1+2+ ... 10) = 55 = 3025...

Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is
3025 - 385 = 2640
.

Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum.
Jul 28 '21 #1
1 2753
cactusdata
177 Expert 128KB
What's the problem? Just calculate it.
Of course, you would create two loops to do so.
Go ahead, enjoy, and learn - why should we do your homework?
Jul 29 '21 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

11 posts views Thread by NurAzije | last post: by
3 posts views Thread by Aditi | last post: by
6 posts views Thread by Marlene Stebbins | last post: by
2 posts views Thread by serge calderara | last post: by
6 posts views Thread by carmelo | last post: by
8 posts views Thread by Mathismylove | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.