Write a program that reads three nonzero integers and determines and prints whether they’re the sides of a right triangle.
Write a program that reads three nonzero integers and determines and prints whether they’re the sides of a right triangle.
Input contains serveral lines.
Each line contains three nonzere numbers.
Exit the program when input integer is -1.
Prints whether the input numbers are the sides of a right triangle.
输入
3 4 5 6 7 8 1 2 3 -1
输出
These are the sides of a right triangle. These do not form a right triangle. These do not form a right triangle.