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")

24th Apr 2020, 6:22 AM
Shourov Saha
Shourov Saha - avatar
2 Antworten
+ 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.
24th Apr 2020, 6:46 AM
ChaoticDawg
ChaoticDawg - avatar
- 1
Так между скобок ставь *
24th Apr 2020, 9:22 AM
Mondash
Mondash - avatar