import math a1=input("Pliktrologise to a ") a=float(a1) print a b1=input("Pliktrologise to b ") b=float(b1) print b c1=input("Pliktrologise to c ") c=float(c1) print c1 trig1=(a+b>=c)or(b+c>=a)or(a+c>=b) print trig1 if trig1: t=(a+b+c)/float(2) #"kolpo" gia na paro apotelesma me dekadiko kai ohi akeraio: orizo ton paronomasti os numerical floating point metavliti #print t e=math.sqrt(t*(t-a)*(t-b)*(t-c)) print e else: print "Ta miki plevron pou dinete den ylopioun trigono!"
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question