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:
-
To unpack
triples.tar.gz: tar -xf triples.tar.gz -
To unpack
triples.zip: unzip -q triples.zip
Compile
-
Go to the
triplesdirectory. For example: cd triples -
Compile and link the executable file. For example:
-
With
make: make -
Without
make: gcc -o triples triples.c -lm
-
With