Write a program that will read an arbitrary number of sets of triangle sides using only integer values.
You need to have functions at least for the following tasks:
Sample run:
Provide three side lengths – 0 0 0 to terminate.
5
2
5
5 2 5 Triangle possible: Isosceles and Acute.
Provide three side lengths – 0 0 0 to terminate .
-7
1
2
-7 1 2 Triangle cannot be formed.
Provide three side lengths – 0 0 0 to terminate.
8
12
15
8 12 15 Triangle possible: Scalene Obtuse.
Provide three side lengths – 0 0 0 to terminate.
0
0
0
0 0 0 Program was terminated by user.
Comments
it doesn't work...
Leave a comment