Program to find the area of a triangleExplanationThree sided polygon is known as Triangle. It has a base and an altitude(height). Area of Triangle = ½(b × h) where b is base and h is height. Algorithm
ComplexityO(1) SolutionPythonOutput: Area of Triangle is: 30.0 COutput: Area of Triangle is: 32.50000 JAVAOutput: Area of Triangle is: 26.0 C#Output: Area of Triangle is: 57.5 PHPOutput: Area of Triangle is: 37.5
Next Topic#
|