C# list all Pythagorean triples
Not what you're looking for?
A right triangle can have sides whose lengths are all integers. The set of these integer values for the lengths of the sides of a right triangle is called a Pythagorean triple. Note that sum of the squares of two of the sides must be equal to square of the hypotenuse. Write an application in C++ to find all of the triples for values of the sides and hypotenuse less than 500. Use a collection of nested for loops that try all possibilities.
Purchase this Solution
Solution Summary
This solution provides a solution to writing a C++ applications for finding Pythagorean triples.
Purchase this Solution
Free BrainMass Quizzes
C++ Operators
This quiz tests a student's knowledge about C++ operators.
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.
Word 2010: Table of Contents
Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.
Inserting and deleting in a linked list
This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.
C# variables and classes
This quiz contains questions about C# classes and variables.