Last active
August 29, 2015 14:15
-
-
Save jee1mr/b9847ff2642871829f26 to your computer and use it in GitHub Desktop.
ISE-6th Sem ST_Lab_Program_1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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