Question: IN PYTHON Q.1. (20 points) Write a program that prompts the user for the lengths of three sides of a triangle, then prints if these
IN PYTHON
Q.1. (20 points) Write a program that prompts the user for the lengths of three sides of a triangle, then prints if these three lengths can form a triangle or not. Hint: In Geometry, given a triangle ABC, the sum of any two sides of a triangle is greatei than the third side. Example output: Enter a:8 Enter b:9 Enter c:23 8, 9, and 23 cannot form a triangle Enter a:3sPi Enter b:4 Enter c:5sp 3, 4, and 5 can form a triangle
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
