Pythagorean Triangles
Create a directory called Lab2 in your cs203 directory. Place all of the files created for this lab in the Lab2 folder.
This lab does not require the use of classes and objects. It is an exercise in the use of nested loops. This is a single file project with a main() and possibly some functions. Please place the functions after main(), and use function prototypes placed above main() for each function you create.
A Pythagorean triangle is a right triangle whose sides are all of integer lengths. Write a program that prints out all Pythagorean triangles whose sides are less than or equal to 500. Do not print duplicates that are permutations of triangles already printed. For example, the triangle (3, 4, 5) can be printed, but not (4,3,5).
The output should be a table with six triangles listed per line, arranged in columns. You can test for the sixth triangle listing and add a new-line after that listing.
Your program should also keep track of how many Pythagorean triangles have been found, and print the total number of triangles found at the end of the output table.