Question: Need help writing a function in Racket. function pythagorean which finds pythagorean triples ( values of x, y, z where x^2 + y^2 = z
Need help writing a function in Racket.
function pythagorean which finds pythagorean triples ( values of x, y, z where x^2 + y^2 = z ^2)
Function takes one argument which is the maximum value for c. This function should return a list of tuples (x, y, z) values.
I.E.
pythagorean 10
should return: [(3,4,5), (6,8,10)]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
