Tag: pythagorean triples

Write a list comprehension that finds all the Pythagorean triples for right triangles with sides shorter than 100

Write a list comprehension that finds all the Pythagorean triples for right triangles with sides shorter than 100. A Pythagorean triple is three integers a, b, and c, where a² + b² = c². In Elixir it takes a line of code with pattern-matching to produce this. Note the 3

Create a website or blog at WordPress.com