473,418 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 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 4336
cactusdata
214 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

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

Similar topics

11
by: NurAzije | last post by:
Best Regards, I am a php developer, have worked on websites for more than 6 years, I work with a company on a project, now we have a new project and I must give the best solution on how we can do...
3
by: Aditi | last post by:
hi all...i m a software engg. student completed my 2nd yr...i have been asked to make a project during these summer vacations...and hereby i would like to invite some ideas bout the design and...
6
by: Marlene Stebbins | last post by:
My hobby project is a library of routines in C that do big integer arithmetic. I've been working on it for several weeks and it now consists of about 1200 lines of code. I've got addition,...
2
by: serge calderara | last post by:
Dear all, I am actually studying ASP.net and I have read in MS press book that by default, project defined within VS studio 2003 environement goes under Inetpub\wwroot folder. What I woul like...
6
by: carmelo | last post by:
naturally i don't pretend that anyone make the whole project ... i was just asking if there is someone that has the patience to help me because maybe it's a stupid problem for people that know the...
0
by: FiOh | last post by:
Hi there, I'm new to VB but needs to write a program with VB for my project. My project is to write an application that will check if it's being run on a valid user by reading the PC Name. Next...
25
by: jwrweatherley | last post by:
I'm pretty new to python, but am very happy with it. As well as using it at work I've been using it to solve various puzzles on the Project Euler site - http://projecteuler.net. So far it has not...
8
by: Mathismylove | last post by:
Hi. Im new to Java and attempted to increase my knowledge by working on Project Euler..I figured that If Im able to solve as many problems from the project as possible with Java I will get more...
4
by: liams | last post by:
So, a few days ago I decided to try Project Euler question #22. The question is: Using names.txt (right click and 'Save Link/Target As...'), a 46K text file containing over five-thousand first...
0
by: zuko32 | last post by:
This is a question about a Project Euler problem. This is where you can find the description of the problem: https://projecteuler.net/problem=29 OK, first of all, let me clarify that I have solved...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.