Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
isTriangle = True
OK = 'Y'
while True:
a = float(raw_input("Nhap a="))
b = float(raw_input("Nhap b="))
c = float(raw_input("Nhap c="))
if(a<=0 or b<=0 or c<=0):
isTriangle = False
if((a + b <= c) or (a + c <= b) or (b + c <= a)):
isTriangle = False
print "Day la tam giac"
print "Day khong phai la tam giac"
isTriangle = True
OK = raw_input("Ban muon tiep tuc khong?(Y/N)")
if(OK is 'N'):
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.