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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!