Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ISE-6th Sem ST_Lab_Program_1
import sys
try:
x,y,z = map(int,raw_input().split())
except ValueError:
print "Invalid Input"
sys.exit(0)
if not (x<y+z and y<x+z and z<x+y):
print "Triangle cannot be formed"
else:
if x==y and y==z:
print "Equilateral Triangle"
elif x==y or y==z or z==x:
print "Isosceles Triangle"
else:
print "Scalene Triangle"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.