Pls help in this code

base= eval(input(‘Enter the value of base you want:’))
height= eval(input(‘Enter the value of height you want:’))
area= 1/2(base*height)
print(‘The area of the triangle is:’,area)

What is your question? What problem do you have?

1 Like

you made a mistake in third line, it should be this: area=(1/2) * (base * height)


This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.