471,607 Members | 2,536 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,607 software developers and data experts.

[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 3224
cactusdata
200 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 XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by MichaelMortimer | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.