I have to create a program that will sort 3 numbers into ascending order, I then have to use this program and insert it into another program that will take the 3 numbers and determine if they could form a right triangle. My question is this: is there a way to get the numbers to be output into int a, b, c so that a, b, and c are in ascending order? Or is this a program that I will need to use multiple if...else statements? Thanks.
Aucun commentaire:
Enregistrer un commentaire