triples: find primitive Pythagorean triples

This simple C program finds primitive Pythagorean triples.

Download

Download a compressed archive file:

Unpack

Unpack the archive file. For example:

Compile

  1. Go to the triples directory. For example: cd triples
  2. Compile and link the executable file. For example:
    • With make: make
    • Without make: gcc -o triples triples.c -lm