Question: Question 3 [30 pts]: Write a program that reads three numbers and find out if these numbers can be considered as angles of a triangle.
![Question 3 [30 pts]: Write a program that reads three numbers](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f5376d8914b_54066f5376cf287b.jpg)
Question 3 [30 pts]: Write a program that reads three numbers and find out if these numbers can be considered as angles of a triangle. The rule says: a) if the sum of the three angles is equal to 180, then a triangle can be accordingly drawn. b) Otherwise a message of "The triangle cannot be drawn" will be displayed Sample Run 1: Enter three numbers: 40.5 62.5 77 The sum of the three numbers is: 180 The triangle can be drawn. Sample Run 2 : Enter three numbers: 60 60 20 The sum of the three numbers is: 140 The triangle cannot be drawn
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
