I need help with my homework

A Pythagorean triplet is a set of three natural numbers, a < b < c, for which: a^2 + b^2 = c^2. For example: 3^2+4^2=9+16=25=5^2.
There exists exactly one Pythagorean triplet for which a + b + c = 1000.
Find the product a x b x c.

Obviously with DrRocket.

Much like Stack Overflow, I think you'll probably get higher-quality help with your homework if you show what you've done already, and how you're thinking about the problem.


This post was flagged by the community and is temporarily hidden.

@cametan , as a teacher, I find it really causes me pain when you supply answers for homework like this. Do you have a suggestion for me?

1 Like

As @sorawee says in the other thread, helping with homework questions is okay, but giving the final solution is actually useless, as the student does not learn too much.

@federico3 Please in the future, here or elsewhere, if you have a homework question, tell us what exactly you are unable to do so that we can help you get "unstuck". However, do not expect people to do the homework for you: it is unfair and useless for you as a student.

I am not a moderator of this forum, but I teach programming quite a lot, so I know what I am talking about.