triples: find primitive Pythagorean triples
This simple C program finds primitive Pythagorean triples.
Download
Compile
- Download one of the archive files.
-
Unpack the archive file. For example:
- To unpack triples.tar.gz: tar -xzf triples.tar.gz
- To unpack triples.zip: unzip -q triples.zip
- Go to the triples directory. For example: cd triples
-
Compile and link the executable file. For example:
- With make: make
- Without make: gcc -o triples triples.c -lm