this program calculates the area of a right triangle #ask for input

b=input('Enter the triangle base:')
h=input('Enter the triangle height:')

Calculate and print area

Area=(b*h)/2
Print '\n The base is '+str(b) + 'units'
Print 'The height is 'str(h) + 'units'
Print '\n The area is 'str(area + 'units'

Keep going. You have the basic outline of your app which is a start.

Your program doesn't only calculate the area of a right triangle, it calculates the area of ANY triangle.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.