hi i need to creat a program that gives all pythagoras triplets and has a limit of 250
0 < a <= b <= c < 250, a2 + b2 = c2
each triplet needs to be in a line
like:
3,4,5
5,12,13
6,8,10
and so on till 250-- the last one is 160,168,232
i wrote this but for some reason there is someting missing since is gives me wrong triples?
can someone help me