Trying to make a program which will create Pythagorean triplet from a single given Natural number(excluding 1 and 2) in CPP. Currently the prime numbers are functional.
isprime(n)
_____|______
NO| |YES
isodd() followPrime(n)
_____|_______
NO| |Yes
ifeven(n) ifodd(n)