Question
Write a program, that reads three real numbers (integers) and Prints the following messages: Triangle:The three numbers represent a triangle if the real numbers can
Write a program, that reads three real numbers (integers) and Prints the following messages: Triangle:The three numbers represent a triangle if the real numbers can represent lengths of the sides of a triangle (the sum of any two of the numbers must be greater than the third) or the number do not represent a triangle. If the number do not represent a triangle print out a message stating that If the numbers represent a triangle, then determine and print out what type of triangle they represent: Equilateral:The triangle is equilateral (the three sides are equal). Isosceles:The triangle is isosceles (two sides are equal). Scalene:The triangle is scalene (no two sides are equal). The output from your program should have a format like the following: Enter 3 lengths: 2 3 3 The three numbers represent a triangle. It is an isosceles triangle. Written by: insert your name here Run your program using the following data: 2 3 3 3 4 5 7 7 7 8 8 17 14 6 7 8 15 6 Summit a copy of your program and the output of all 6 runs.
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