its ok i just did using python but I'm still trying to fully understand C so I already knew how to do it
Type: Posts; User: Simar Chhabra
its ok i just did using python but I'm still trying to fully understand C so I already knew how to do it
Well, Unfortunately, I tried that before and just now, and the program failed to execute
There was no compiling error. The problem was that it gave incorrect results. The point of the program is to find a pythagorean triplet but in this case it got a large amount of 0's. so for example...
it doesn't work...
What is wrong with this program?
A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
a^2 + b^2 = c^2
For example, 32 + 42 = 9 + 16 = 25 = 52.
...