0

Syntax error

My program says theres an error in side_a, i cant distinguish help me import math #input user side_b = float(input("Enter value for side b:")) side_c = float(input("Enter value for side c:")) angle_A = math.radians(int(input("Enter value for angle A:")) #declare variable for computations side_a = math.sqrt(side_b*side_b + side_c*side_c - 2 * side_b * side_c * math.cos(angle_A)) angle_B = math.asin(side_b * math.sin(angle_A)/side_a) angle_C = math.asin(side_c * math.sin(angle_A)/side_a) s = (side_a+side_b+side_c)/2 Area = math.sqrt(s*(s-side_a)*(s-side_b)*(s-side_c)) MedianM = (1/2)*math.sqrt(2*(side_a*side_a) + 2*(side_c*side_c) - (side_b*side_b)) MedianN = (1/2)*math.sqrt(2*(side_b*side_b) + 2*(side_c*side_c) - (side_a*side_a)) MedianP = (1/2)*math.sqrt(2*(side_a*side_a) + 2*(side_b*side_b) - (side_c*side_c)) print("The value of side a is:", side_a) print("The value of angle B is:", angle_B) print("The value of angle C is:", angle_C) print("The total area of the triangle is:", Area) print("The length of median M is:", MedianM) print("The length of median N is:", MedianN) print("The length of median P is:", MedianP)

12th Feb 2020, 12:37 PM
Amolap
Amolap - avatar
1 Answer
0
Do a paranthesis count for each line... Edit. the line before, the one with angleA is missing a )
12th Feb 2020, 12:39 PM
Mihai Apostol
Mihai Apostol - avatar