0
Int object is not callable
import math a=int(input('Enter the 1st num:')) b=int(input('Enter the 2nd num:')) c=int(input('Enter the 3rd num:')) if (a+b)>c and (b+c)>a and (c+a)>b: s= (a+b+c)//2 #s=round(s,1) i=math.sqrt(s*(s-a)(s-b)(s-c)) print (i) else: print("Triangle is not possible")
2 Respostas
+ 3
i=math.sqrt(s*(s-a)*(s-b)*(s-c))
You need to add the multiply operator between ()()() they don't multiply like regular mathematics without it in programming.
- 1
Так между скобок ставь *