I'm having a problem in one of my textbooks and can't seem to come to a solution to it. It's in the book "Using TurboPascal 6.0-7.0" by Hennefield. It has to do with two-dimensional arrays.
The problem asks you to write a program that prints all Pythagorean triples with c<=25. Then it says to modify that program so you do not allow duplications of similar triangles. For example, 3,4,5 should appear but 6,8,10 should not (only reduced).
Please help me.
The problem asks you to write a program that prints all Pythagorean triples with c<=25. Then it says to modify that program so you do not allow duplications of similar triangles. For example, 3,4,5 should appear but 6,8,10 should not (only reduced).
Please help me.