Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started