Question: Write a java program that reads three edges for a triangle and computes the perimeter if the input is valid. Otherwise, display that the input
Write a java program that reads three edges for a triangle and computes the perimeter if the input is valid. Otherwise, display that the input is invalid. Give user two more chances if the input is valid. After the user missed all chances, display a kind message to user that the user missed all chances with invalid input, and cannot input any more. You need to display results to console. The input is valid if the sum of every two edges is greater than the remaining edge.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
