For example for input as 5,there are two possible triplets,3,4,5 and 5,12,13. The program I have written will display the smaller numbers of the triplet if the largest is entered,but will display the larger ones if the smallest is entered.
So if I enter 5,it will give 3,4 as output and if I give 3,it will give 4,5 as output. The conflict comes with 5 though.Entering 5 will only give 3,4 and not 12,13. Since 5 sits with the first condition my program will skip 12,13.I can modify it by I want to know do I have to display both these sets of triplets for 5.