Skip to content

Instantly share code, notes, and snippets.

@jee1mr
Last active August 29, 2015 14:15
Show Gist options
  • Save jee1mr/b9847ff2642871829f26 to your computer and use it in GitHub Desktop.
Save jee1mr/b9847ff2642871829f26 to your computer and use it in GitHub Desktop.
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